JWT Angular Spring Boot

I am following this blog post to create Angular and Spring Boot app with Okta integration for user authentication and authorization. I have added an interceptor that sends access token with each request to Spring Boot app.

Do I need to make use of JWT after getting access token so that Spring Boot app does not have to parse the access token in each request from Angular and make requests to authorization server each time adding latency?

If yes, is there an example of how to use interceptor with access token in Angular once and get JWT from Spring Boot after authentication?

If you want something like this, it’s probably best to combine your Spring Boot and Angular app into a single artifact and let Spring Boot do the OAuth dance for you. It’ll save the authentication information in the session and prevent multiple requests from happening. You can use JHipster to do this for you.