We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eefdd4 commit 0ddb8ccCopy full SHA for 0ddb8cc
packages/core/src/providers/github.ts
@@ -128,9 +128,9 @@ export default function GitHub(
128
}
129
130
): OAuthConfig<GitHubProfile> {
131
- const baseUrl = config.enterprise?.baseUrl ?? "https://github.com"
132
- const apiBaseUrl = config.enterprise?.baseUrl
133
- ? `${config.enterprise?.baseUrl}/api/v3`
+ const baseUrl = config?.enterprise?.baseUrl ?? "https://github.com"
+ const apiBaseUrl = config?.enterprise?.baseUrl
+ ? `${config?.enterprise?.baseUrl}/api/v3`
134
: "https://api.github.com"
135
136
return {
0 commit comments