MS graph access token from FlutterFire signInWithAuthProvider #10499
-
I see this issue is closed, but I am not able to understand the solution, as the token I am not able to call MS graph with the access token I am getting. Get ms graph access token from flutterfire signInWithAuthProvider method #9505 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, the You then need to call MS graph with the Authorization header:
If you still have any questions, feel free to ask. |
Beta Was this translation helpful? Give feedback.
Well, the
sigInInWithAuthprovider
method returns a credential like so:cred = await FirebaseAuth.instance.signInWithProvider(provider);
You can than get the oauth access token like so:
cred.credential!.accessToken!
You then need to call MS graph with the Authorization header:
If you still have any questions, feel free to ask.