Retrieve Google Auth User
Unanswered
Atlantic mackerel posted this in #help-forum
Atlantic mackerelOP
Hey guys, I just make my google auth but I don't know how to get user information "like user profile, nickname, email"
I guess the
How can I get user information?
Im using v4 NextAuth
export const authOptions = {
providers: [
GithubProvider({
clientId: process.env.GITHUB_CLIENT_ID as string,
clientSecret: process.env.GITHUB_CLIENT_PASSWORD as string,
}),
Google({
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_PASSWORD as string
})
],
pages: {
signIn: "/login"
}
}I guess the
callbacks:{} is the answer but I don't know exactly How can I get user information?
Im using v4 NextAuth