( clientSecret: string | null | undefined, method: ClientAuthMethod, )
| 985 | }; |
| 986 | |
| 987 | const pickClientAuth = ( |
| 988 | clientSecret: string | null | undefined, |
| 989 | method: ClientAuthMethod, |
| 990 | ): oauth.ClientAuth => { |
| 991 | if (!clientSecret) return oauth.None(); |
| 992 | if (method === "basic") return oauth.ClientSecretBasic(clientSecret); |
| 993 | if (method === "basic_raw") return rawClientSecretBasic(clientSecret); |
| 994 | return oauth.ClientSecretPost(clientSecret); |
| 995 | }; |
| 996 | |
| 997 | const normalizedTokenScope = ( |
| 998 | as: oauth.AuthorizationServer, |
no test coverage detected