webdevcody / wdc-saas-starter-kit

https://wdcstarterkit.com/
MIT License
1.16k stars 272 forks source link

`tokens.accessToken` is a function and it's directly passed has the bearer token #43

Open coderoyalty opened 1 day ago

coderoyalty commented 1 day ago

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?

laihuynhnhatminh commented 13 hours 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;
}