Retrieve the saved Microsoft access token and ID token for a member. After a successful OAuth login, Stytch will save the issued access token and ID token from the identity provider. If a refresh token has been issued, Stytch will refresh the access token automatically.
Get Microsoft Access Token
GEThttps://test.stytch.com/v1/b2b/organizations/{organization_id}/members/{member_id}/oauth_providers/microsoft
Path parameters
organization_id* string
member_id* string
Query parameters
include_refresh_token boolean
Response fields
request_id string
status_code int
provider_type string
provider_subject string
access_token string
access_token_expires_in number
id_token string
refresh_token string
scopes array
curl --request GET \
--url https://test.stytch.com/v1/b2b/organizations/organization-test-07971b06-ac8b-4cdb-9c15-63b17e653931/members/member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f/oauth_providers/microsoft \
-u 'PROJECT_ID:SECRET' \
-H 'Content-Type: application/json'
RESPONSE
200
{
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"status_code": 200,
"provider_type": "microsoft",
"provider_subject": "10769150350006150715113082367",
"access_token": "eyJ...",
"access_token_expires_in": 3600,
"id_token": "eyJ...",
"scopes": ["read:users", "write:users"]
}