Help for auth sessions invalidation
Hiho! I am here to ask for guidance regarding how to invalidate user sessions. I found no option on auth.admin functions for this.
My scenario: user got subscription canceled. I archived user's plan in database, but I want user sessions to be updated. I have a custom auth hook function that is setting subscription data into the claims, but I want the session token to be refreshed immediately after subscription cancelled. Thanks for any suggestion
My scenario: user got subscription canceled. I archived user's plan in database, but I want user sessions to be updated. I have a custom auth hook function that is setting subscription data into the claims, but I want the session token to be refreshed immediately after subscription cancelled. Thanks for any suggestion