You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if it's only with me or everyone has a problem with the package. My function never gets called? Is there a problem with the package?
This function never gets called:-
async (accessToken, refreshToken, userProfile, cb) => {
console.log(userProfile);
const profile = userProfile as unknown as UserProfile;
let user = await getRepository(User).findOne({
where: { githubId: profile.id },
});
My code:-
new GitHubStrategy(
{
clientID: process.env.ID,
clientSecret: process.env.SECRET,
callbackURL: "http://localhost:4000/graphql",
},
async (accessToken, refreshToken, userProfile, cb) => {
console.log(userProfile);
const profile = userProfile as unknown as UserProfile;
let user = await getRepository(User).findOne({
where: { githubId: profile.id },
});
if (!user) {
user = await createUser({
username: profile.username || "",
email: profile.emails as unknown as string,
githubId: profile.id,
pictureUrl: profile._json.avatar_url,
});
}
cb(null, {
user,
accessToken,
refreshToken,
});
}
)
);```
The text was updated successfully, but these errors were encountered:
I am not sure if it's only with me or everyone has a problem with the package. My function never gets called? Is there a problem with the package?
This function never gets called:-
My code:-
The text was updated successfully, but these errors were encountered: