react-netlify-identity icon indicating copy to clipboard operation
react-netlify-identity copied to clipboard

custom claims

Open swyxio opened this issue 6 years ago • 5 comments

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

swyxio avatar May 02 '19 18:05 swyxio

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?

jahvi avatar Jun 29 '19 22:06 jahvi

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.

swyxio avatar Jul 01 '19 02:07 swyxio

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 😄

jahvi avatar Jul 01 '19 13:07 jahvi

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

docs PR very very welcome!!!

swyxio avatar Jul 01 '19 19:07 swyxio

No worries it happens 😄

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

jahvi avatar Jul 02 '19 08:07 jahvi