MCPcopy Index your code
hub / github.com/NativeScript/firebase / loginMs

Method loginMs

apps/demo/src/plugin-demos/firebase-auth.ts:170–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 loginMs() {
171 // https://firebase.google.com/docs/auth/android/microsoft-oauth#handle_the_sign-in_flow_with_the_firebase_sdk
172
173 const provider = new OAuthProvider('microsoft.com');
174 provider.addCustomParameter('prompt', 'consent');
175 provider.addCustomParameter('login_hint', 'user@firstadd.onmicrosoft.com');
176 provider.addCustomParameter('tenant', 'TENANT_ID');
177
178 provider.setScopes(['mail.read', 'calendars.read']);
179
180 firebase()
181 .auth()
182 .signInWithProvider(provider)
183 .then((credentials) => {})
184 .catch((err) => {});
185 }
186}

Callers

nothing calls this directly

Calls 6

addCustomParameterMethod · 0.95
setScopesMethod · 0.95
firebaseFunction · 0.90
authMethod · 0.80
signInWithProviderMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected