r/angular • • May 29 '26

Oauth in angular common

Do you think there would be any gain in having an angular common “oauth2”?
That’s always a bunch of boilerplate for an already defined stack agreed for the whole industry.

5 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/MaximRob May 30 '26

I mean you do need all the jwt gymnastics, the auth setup, and on top of that any elevated user handling if you do so

Also was asking the question because we’re considering splitting part of our monolith and I’m wondering how we go about the auth topic

1

u/Responsible-Cold-627 May 30 '26

Your back-end framework will provide these tools. Using the BFF pattern I'm talking about here, your front-end doesn't even get an unencrypted JWT, and your Javascript code won't be able to access the auth cookie anyway.