# JWT Angular Spring Boot

**URL:** <https://devforum.okta.com/t/jwt-angular-spring-boot/5859>\
**Category:** Questions\
**Created:** [August 5, 2019, 2:28am UTC](https://devforum.okta.com/t/jwt-angular-spring-boot/5859 "2019-08-05T02:28:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sart96](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sart96/32/1418_2.png) [@sart96](https://devforum.okta.com/u/sart96)\
**Post date:** [August 5, 2019, 2:28am UTC](https://devforum.okta.com/t/jwt-angular-spring-boot/5859/1 "2019-08-05T02:28:48Z")

</div>

I am following [this blog post](https://developer.okta.com/blog/2019/05/13/angular-8-spring-boot-2) 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?

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [August 5, 2019, 8:02pm UTC](https://devforum.okta.com/t/jwt-angular-spring-boot/5859/2 "2019-08-05T20:02:37Z")

</div>

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](https://www.jhipster.tech) to do this for you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 24, 2024, 6:30pm UTC](https://devforum.okta.com/t/jwt-angular-spring-boot/5859/3 "2024-01-24T18:30:35Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
