1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How do I create a validate JWT token api in .net?

Discussão em 'Angular' iniciado por user123456, Junho 21, 2025.

  1. user123456

    user123456 Guest

    I have and angular client. And I have a .net server. Now once a user login, I send a JWT token in the response. The client stores the JWT token in local sotrage. my question is, a user can open the chrome dev tools and insert some data in the token key. Then the client will be able to see all the angular pages. So how can I create an api that validates if jwt token is correct or not ?

    public async Task<bool> ValidateToken(string token)
    {

    }

    Continue reading...

Compartilhe esta Página