how to get accesstoken from endpoint response in angular and save in local storage

Discussão em 'Angular' iniciado por Nasir Sadeeq, Janeiro 9, 2025.

  1. Nasir Sadeeq

    Nasir Sadeeq Guest

    i am pretty new on angualr.i am implementing login flow and i have and endpoint through which redirect me to azure B2C login page and after successfull login it redirect to another endpoint that is sending custom jwt access Token. i have to get that access token and save for latter use to access endpoints. but issue is after successful login i am stuck at the screen below enter image description here i am unable to redirect to my home page nor able to save this access token in local storage.

    I have tries to use popup window option but still i am unable to redirect back from this page enter image description here this is my code enter image description here enter image description here

    Continue reading...

Compartilhe esta Página