syncweek-react-aad / react-aad

A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
MIT License
344 stars 94 forks source link

Passwordless/MagicLink login - cannot obtain access tokens #263

Open JohnPaulHarold opened 4 years ago

JohnPaulHarold commented 4 years ago

Library versions

Describe the bug Trying to login via a passwordless (aka "Magic Link") flow. User can login, but cannot silently get any access tokens to use as bearer tokens on subsequent API calls. The getAccessToken call is requiring that the user be shown a login screen.

Expected behavior My expectation is that as the user is already authenticated, they can make API requests, and ultimately gaining access tokens to insert to an Authorization header, without needing to sign in.

Desktop (please complete the following information):

Smartphone (please complete the following information):