File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function oidcSignInRedirect(provider) {
44
44
45
45
function oidcSignInRedirectResult ( provider ) {
46
46
// [START auth_oidc_signin_redirect_result]
47
- import { getAuth , getRedirectResult , OAuthProvider } from "firebase/auth" ;
47
+ const { getAuth, getRedirectResult, OAuthProvider } = require ( "firebase/auth" ) ;
48
48
49
49
const auth = getAuth ( ) ;
50
50
getRedirectResult ( auth )
@@ -69,7 +69,7 @@ function oidcSignInRedirectResult(provider) {
69
69
70
70
function oidcDirectSignIn ( provider , oidcIdToken ) {
71
71
// [START auth_oidc_direct_sign_in]
72
- import { getAuth , OAuthProvider } from "firebase/auth" ;
72
+ const { getAuth, OAuthProvider } = require ( "firebase/auth" ) ;
73
73
74
74
const auth = getAuth ( ) ;
75
75
const credential = provider . credential ( {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function samlSignInRedirect(provider) {
44
44
45
45
function samlSignInRedirectResult ( provider ) {
46
46
// [START auth_saml_signin_redirect_result]
47
- import { getAuth , getRedirectResult , SAMLAuthProvider } from "firebase/auth" ;
47
+ const { getAuth, getRedirectResult, SAMLAuthProvider } = require ( "firebase/auth" ) ;
48
48
49
49
const auth = getAuth ( ) ;
50
50
getRedirectResult ( auth )
You can’t perform that action at this time.
0 commit comments