umarfkhawaja
05/04/2023, 9:22 AMrp_st
05/04/2023, 10:32 AMumarfkhawaja
05/04/2023, 10:33 AMrp_st
05/04/2023, 10:44 AMcustomExpiry
value when the session is created. The value of this will depend on the type of user.
Then you can make your own verify session middleware which calls our getSession function first, and after successful verification, it will check the customExpiry
and if it's past this time, send back a 401.
Finally, you override the refresh API to call our refresh function, and then check the same customExpiry
in the returned session object. If that's past the expiry, then you would also revoke the session before returning the response.
This would work as long as the timeout set in the core is the larger value of the two types of session timeouts you want.umarfkhawaja
05/04/2023, 10:50 AMrp_st
05/04/2023, 10:51 AMrp_st
05/04/2023, 10:51 AMumarfkhawaja
05/04/2023, 10:54 AMumarfkhawaja
05/04/2023, 11:30 AMcreateNewSession
umarfkhawaja
05/04/2023, 11:31 AMrp_st
05/04/2023, 11:37 AMumarfkhawaja
05/04/2023, 11:42 AMumarfkhawaja
05/04/2023, 11:42 AMumarfkhawaja
05/04/2023, 11:42 AMumarfkhawaja
05/04/2023, 11:42 AMumarfkhawaja
05/04/2023, 11:43 AMumarfkhawaja
05/04/2023, 11:43 AMumarfkhawaja
05/04/2023, 11:44 AMumarfkhawaja
05/04/2023, 11:44 AMrp_st
05/04/2023, 11:48 AMrp_st
05/04/2023, 11:48 AMumarfkhawaja
05/04/2023, 11:48 AMroushan_46400
11/10/2023, 11:47 AMumarfkhawaja
11/10/2023, 11:56 AM