-
-
Notifications
You must be signed in to change notification settings - Fork 347
Open
Description
the callback function do not fetch the GitHub user emails + do not provide type safety when typed out (need specific casting)
export class GithubAuthenticator {
constructor(options: StrategyOptions, controller: GithubAuthenticatorProps) {
passport.use(
new Strategy(
options,
async (
accessToken: string,
refreshToken: string,
profile: Profile // profile.emails DO NOT FETCH,
done: (err: any, user?: Express.User | false | null) => void,
) => {
Metadata
Metadata
Assignees
Labels
No labels