()
| 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 | } |
nothing calls this directly
no test coverage detected