8 thoughts to “Angular 12 + Spring Boot: JWT Authentication example | Spring Security”

  1. Hi, sorry to bother you but i have a problem really don’t know how to do it.

    for tutorial Angular + Jwt +SpingBoot, in auth.interceptor.ts file
    you say that if use Sping Boot backend, it should be : const TOKEN_HEADER_KEY = ‘Authorization’;
    and for Node.js back-end we need add this : const TOKEN_HEADER_KEY = ‘x-access-token’;

    so i want to know how should i add in Django back-end
    really really thank you!!!

    1. Hi, it depends on which front-end header you use to shake hand with back-end.
      For example, I check x-access-token in Node.js and x-access-token for Spring Boot server.

  2. Hi, thanks a lot for these tutorials and sharing your knowledge, truly appreciate it!

    The tutorials are really hands on and few of the best I have seen!

    For this particular one though, I couldn’t see the code repo attached, please could you share the github link?

    Thanks

    1. Hi, you can find Github link for backend and frontend in the tutorials that I mention at Conclution section.

  3. Hi before angular 12 I use this.userService.getUser(this.authService.decodedToken.nameid) but in angular 12 my token wasn’t decoded what can I do

Leave a Reply

Your email address will not be published. Required fields are marked *