# How do I accept an access token in Spring Boot?

**URL:** <https://community.auth0.com/t/how-do-i-accept-an-access-token-in-spring-boot/164845>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [December 20, 2024, 9:19pm UTC](https://community.auth0.com/t/how-do-i-accept-an-access-token-in-spring-boot/164845 "2024-12-20T21:19:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jackiegleason](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jackiegleason/32/8119_2.png) [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Post date:** [December 21, 2024, 2:32am UTC](https://community.auth0.com/t/how-do-i-accept-an-access-token-in-spring-boot/164845/2 "2024-12-21T02:32:25Z")

</div>

It does seem I am getting a opaque token and that I may need to do this…

> [@Added Audience and STILL getting Opaque token instead of JWT token with React](https://community.auth0.com/t/added-audience-and-still-getting-opaque-token-instead-of-jwt-token-with-react/110636):
>
> Hello, I’m currently developing a React application using Auth0 for authentication. I have set up the Auth0Provider with the correct audience and I’m using the getAccessTokenSilently method to retrieve the access token. However, I’m encountering an issue where I’m receiving an opaque token instead of the expected JWT token. This is causing problems when I try to use this token to authenticate with my API. Good to note, my client side code is deployed with AWS Amplify Here’s the relevant code…

However this confuses me for 2 reasons.

1. I may need different permissions for different requests so I can’t really set it at the Provider level. I have previous code that used to work at the token acquisition level but it seems like something changed.

2. Why do I need to call an access token function if this sort of thing is stored at the Provider level? Why doesn’t it provide it as a variable instead?

---

_[View the full topic](https://community.auth0.com/t/how-do-i-accept-an-access-token-in-spring-boot/164845)._
