Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserProfile in session/local storage #1507

Open
johnfabian opened this issue May 14, 2024 · 2 comments
Open

UserProfile in session/local storage #1507

johnfabian opened this issue May 14, 2024 · 2 comments
Labels
question Further information is requested

Comments

@johnfabian
Copy link

How can I either hide the UserProfile in storage since it is displaying in plain text and I have role claims in the idToken and I don't want the idtoken claims in the UserProfile. I've used other oidc clients for other technologies and that was never displayed like that. Is there a way to turn that off?

loadUserInfo: false,
filterProtocolClaims: true,
response_type: 'id_token token'

@pamapa
Copy link
Member

pamapa commented May 17, 2024

Using the settings userStore gives you full control. See https://authts.github.io/oidc-client-ts/interfaces/UserManagerSettings.html#userStore

@pamapa pamapa added the question Further information is requested label May 17, 2024
@johnfabian
Copy link
Author

johnfabian commented May 19, 2024

I am but the code has export type UserProfile = IdTokenClaims; so the idtokenclaims and being added to the profile regardless and the filterProtocolClaims:true doesn't do anything so I'm just creating a custom Storage and filtering out profile. profile shouldn't display all those properties by default and should be optional to even store Profile in storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants