(clientId: string, clientSecret: string)
| 972 | // `method` only chooses HOW a present secret is sent (post vs either Basic |
| 973 | // credential encoding). |
| 974 | const base64BasicCredentials = (clientId: string, clientSecret: string): string => { |
| 975 | const bytes = new TextEncoder().encode(`${clientId}:${clientSecret}`); |
| 976 | let binary = ""; |
| 977 | for (const byte of bytes) binary += String.fromCharCode(byte); |
| 978 | return globalThis.btoa(binary); |
| 979 | }; |
| 980 | |
| 981 | const rawClientSecretBasic = |
| 982 | (clientSecret: string): oauth.ClientAuth => |
no test coverage detected