tyf
April 25, 2023, 10:08pm
3
Hey there @tkiddle welcome back to the community
The only way I’m aware of retrieving that value is via the Management API get client by id - token_lifetime
in particular:
Given that this does require using a Management API access token , you’d want to be sure and proxy this through a backend as outlined in the following FAQ:
Question: How can I enable users to change their email address from a SPA or native app?
Answer:
Public clients (like SPAs and native applications) are restricted from requesting tokens for the management API with the proper scopes for updating a user’s email. These types of applications are limited to a few specific scopes . Because of these limitations, email change requests from public clients must flow through a backend or proxy API. This could be a serverless function with the sole purpose…
Hope this helps!
2 Likes