Thank you, @mitchell.anderson! I understand what you mean. Even though the user has the role when they log in, their permissions are not included in the Access Token until they log in a second time. Adding the role as a custom claim is preferred here. I’ll research this and let you know what I find.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Add a Default Role to a New User on First Login | 1 | 25287 | May 29, 2019 | |
Pre registration Action does not add metadata | 5 | 2303 | December 21, 2022 | |
How to set user meta data if the user use passwordless in flows | 2 | 2754 | December 24, 2021 | |
Can't auto-assign role to a passwordless email signup | 4 | 404 | January 11, 2024 | |
Using api.user.setAppMetadata() in Pre Registration Action for Passwordless flow | 4 | 2335 | December 21, 2022 |