(clientId: string, clientSecret: string)
| 952 | // `method` only chooses HOW a present secret is sent (post vs either Basic |
| 953 | // credential encoding). |
| 954 | const base64BasicCredentials = (clientId: string, clientSecret: string): string => { |
| 955 | const bytes = new TextEncoder().encode(`${clientId}:${clientSecret}`); |
| 956 | let binary = ""; |
| 957 | for (const byte of bytes) binary += String.fromCharCode(byte); |
| 958 | return globalThis.btoa(binary); |
| 959 | }; |
| 960 | |
| 961 | const rawClientSecretBasic = |
| 962 | (clientSecret: string): oauth.ClientAuth => |
no test coverage detected