Open coderoyalty opened 1 day ago
Bro what are you smoking? Did you even test the repo before posting this? 😓 From arctic library code. Let's close the issue, okay?
export declare class GitHub implements OAuth2Provider {
private client;
private clientSecret;
constructor(clientId: string, clientSecret: string, options?: {
redirectURI?: string;
enterpriseDomain?: string;
});
createAuthorizationURL(state: string, options?: {
scopes?: string[];
}): Promise<URL>;
validateAuthorizationCode(code: string): Promise<GitHubTokens>;
}
export interface GitHubTokens {
accessToken: string;
}
https://github.com/webdevcody/wdc-saas-starter-kit/blob/c47611c31cb6ca3f5a715be07fd6aa555a74e2d3/src/app/api/login/github/callback/route.ts#L35-L40
https://github.com/webdevcody/wdc-saas-starter-kit/blob/c47611c31cb6ca3f5a715be07fd6aa555a74e2d3/src/app/api/login/github/callback/route.ts#L58-L62
isn't
tokens.accessToken
a function?