( clientSecret: string | null | undefined, method: ClientAuthMethod, )
| 965 | }; |
| 966 | |
| 967 | const pickClientAuth = ( |
| 968 | clientSecret: string | null | undefined, |
| 969 | method: ClientAuthMethod, |
| 970 | ): oauth.ClientAuth => { |
| 971 | if (!clientSecret) return oauth.None(); |
| 972 | if (method === "basic") return oauth.ClientSecretBasic(clientSecret); |
| 973 | if (method === "basic_raw") return rawClientSecretBasic(clientSecret); |
| 974 | return oauth.ClientSecretPost(clientSecret); |
| 975 | }; |
| 976 | |
| 977 | const normalizedTokenScope = ( |
| 978 | as: oauth.AuthorizationServer, |
no test coverage detected