r/SpringBoot • • Sep 16 '26

Discussion (JWT) different ways to implement it ,what most devs do for that case

to make JWT authentication in the application, I could not find like standard way to implementing it

my knowledge is that people create their own authentication filter + handeling the AuthenticationEntryPoint to return the exact right response when exception happen

is that the standard way that engineers follow to implement jwt authentication in the application?

29 Upvotes

11 comments sorted by

View all comments

Show parent comment

4

u/bikeram Sep 16 '26

This.

I spent 2-3 months implementing auth my first time. It’s definitely a good learning experience, and you can basically copy and paste it between projects.

But I’ve used auth0 or cognito for every other project. Zero regrets.

1

u/Paw565 Sep 16 '26

Yeah exactly. Its true for every advanced concept. Implement it from scratch to learn, but then rely on well established solution.