We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a8574 commit cf9e205Copy full SHA for cf9e205
auth-next/oidc.js
@@ -74,11 +74,11 @@ function oidcDirectSignIn(provider, oidcIdToken) {
74
const auth = getAuth();
75
const credential = provider.credential({
76
idToken: oidcIdToken,
77
- })
+ });
78
signInWithCredential(auth, credential)
79
.then((result) => {
80
// User is signed in.
81
- credential = OAuthProvider.credentialFromResult(result);
+ const newCredential = OAuthProvider.credentialFromResult(result);
82
// This gives you a new access token for the OIDC provider. You can use it to directly interact with that provider.
83
})
84
.catch((error) => {
0 commit comments