#Different time limit of accessToken for different roles.

1 messages · Page 1 of 1 (latest)

rugged hawk
#

I am having five different roles with different permissions in it and I want to give different time limit of access_token to different roles. For example : I have an administrator role, I want to give its accessToken time limit to 15mins and if the role is student, I want to give the accessToken time limit to 30mins. How do i do that?
Any help will be appreciated.
Thanks.

sinful spruceBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

rugged hawk
#

anyone???

rugged hawk
#

hey??

serene axle
#

What would be the use-case for this?

rugged hawk
#

I have 2 roles like administrator and student and i want the student session to end in half an hour but at the same time i want the administrator session timeout to be longer so that he don't have to login continuously after some time again and again and can monitor the admin panel easily