( clientSecret: string | null | undefined, method: ClientAuthMethod, )
| 739 | // ones, so an absent secret here unambiguously means "public client". The |
| 740 | // `method` only chooses HOW a present secret is sent (post vs basic). |
| 741 | const pickClientAuth = ( |
| 742 | clientSecret: string | null | undefined, |
| 743 | method: ClientAuthMethod, |
| 744 | ): oauth.ClientAuth => { |
| 745 | if (!clientSecret) return oauth.None(); |
| 746 | return method === "basic" |
| 747 | ? oauth.ClientSecretBasic(clientSecret) |
| 748 | : oauth.ClientSecretPost(clientSecret); |
| 749 | }; |
| 750 | |
| 751 | const normalizedTokenScope = ( |
| 752 | as: oauth.AuthorizationServer, |
no outgoing calls
no test coverage detected