( clientSecret: string | null | undefined, method: ClientAuthMethod, )
| 932 | }; |
| 933 | |
| 934 | const pickClientAuth = ( |
| 935 | clientSecret: string | null | undefined, |
| 936 | method: ClientAuthMethod, |
| 937 | ): oauth.ClientAuth => { |
| 938 | if (!clientSecret) return oauth.None(); |
| 939 | if (method === "basic") return oauth.ClientSecretBasic(clientSecret); |
| 940 | if (method === "basic_raw") return rawClientSecretBasic(clientSecret); |
| 941 | return oauth.ClientSecretPost(clientSecret); |
| 942 | }; |
| 943 | |
| 944 | const normalizedTokenScope = ( |
| 945 | as: oauth.AuthorizationServer, |
no test coverage detected