Does anyone have a recommendation for an OAuth2 li...
# javascript
h
Does anyone have a recommendation for an OAuth2 library for KotlinJS React? Something that is easy to wrap if necessary? I am currently looking at
oidc-client-js
a
@turansky do you know something about it?
t
I know only about OAuth2 support in Ktor, but it will increase bundle size
h
Thank you for your answers, we will try to implement
oidc-client-js
then. Looks lightweight enough :D
t
Do you need full library
oidc-client-js
wrappers?
h
Oh sorry I saw that just now, I wonder why I haven't gotten a notification. I am not sure if I need everything or just parts. Currently I use a self made solution for the OAuth2 process that checks if there is a valid token and redirects when not, checks access and refresh token timeouts and acts accordingly. And I also extract some claims from the token for preliminary frontend access, like hiding drawer items that the user wouldn't have access to anyway.