Yes, you may need to add the spring-boot-starter-oauth2-resource-server dependency along with spring-boot-starter-oauth2-client, depending on your application's requirements.
Here's why:
spring-boot-starter-oauth2-client: This dependency is used when your application acts as an OAuth2 client. It enables your application to obtain access tokens from an OAuth2 provider to access protected resources on behalf of a user.
spring-boot-starter-oauth2-resource-server: This dependency is necessary when your application acts as an OAuth2 resource server. It allows your application to protect its own resources by validating incoming access tokens (e.g., JWTs) presented by clients.
Fore more with example -> https://chatgpt.com/share/672fde8f-38dc-8001-9f22-03372334bb70