How do I get User Metadata in the Login

Hey @solid,

The reason you didn’t receive the user’s metadata is because metadata is not a standard claim so it will not be included in ID Tokens by default.

To include it, you must write a Rule to copy user_metadata properties to the ID token. This is explained in detail here: Add custom claims to a token. I hope this helps.

More information:

1 Like