(path = "/api/oauth/callback")
| 103 | }; |
| 104 | |
| 105 | export function oauthCallbackUrl(path = "/api/oauth/callback"): string { |
| 106 | if (typeof window === "undefined") return path; |
| 107 | return new URL(path, window.location.origin).toString(); |
| 108 | } |
| 109 | |
| 110 | export const OAUTH_CLIENT_ID_METADATA_DOCUMENT_PATH = "/api/oauth/client-id-metadata/default.json"; |
| 111 | export const OAUTH_CLIENT_ID_METADATA_DOCUMENT_LOCAL_PATH = |
no test coverage detected