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

custom claims #8

Open
swyxio opened this issue May 2, 2019 · 5 comments
Open

custom claims #8

swyxio opened this issue May 2, 2019 · 5 comments

Comments

@swyxio
Copy link
Contributor

swyxio commented May 2, 2019

https://auth0.com/docs/scopes/current/custom-claims

@jahvi
Copy link
Contributor

jahvi commented Jun 29, 2019

Not sure if this is part of an internal todo but it's the only thing I could find, are custom claims supported in Netlify Identity?

@swyxio
Copy link
Contributor Author

swyxio commented Jul 1, 2019

they could be supported via user metadata but i was just stubbing out this issue as an idea for adding some code examples and stuff to make this work. if you'd like to mock up something i'd be open to collaborating, but before you i hadn't really prioritized it or anything. was just an idea.

@jahvi
Copy link
Contributor

jahvi commented Jul 1, 2019

I started playing around with it and user metadata works for my use case, the only thing I found in the library is that the updateUser function doesn't expect a regular Object as documented but instead it's this format { data: { ... } }.

If you want I can submit a PR, I spent some time wondering why the user data wasn't getting updated 😄

@swyxio
Copy link
Contributor Author

swyxio commented Jul 1, 2019

yeah sorry even i havent got around to using it and i work here lol

docs PR very very welcome!!!

@jahvi
Copy link
Contributor

jahvi commented Jul 2, 2019

No worries it happens 😄

I just submitted a PR #15 let me know if you want me to change anything.

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

No branches or pull requests

2 participants