My ADB2C created login page redirects to SPA after successful authentication and has an access token as URL parameter in the redirect URL. First, I want to extract an access token from a URL. Is this possible? And second, I want to store the extracted access token in localstorage. Is this also possible? Once these two are in place, I would expect the SPA to be able to access the backend API using an access token. thank you.
To get access token from URL make use of Postman.
OAuth 2.0
from the Type dropdownFor more in detail, please refer these links:
Request Access Token in Postman for Azure AD B2C - Stack Overflow.