feat: implement session delete using redis
This commit is contained in:
		@ -43,6 +43,7 @@ type Claims struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type TokenResp struct {
 | 
			
		||||
	Raw      string
 | 
			
		||||
	Identity string
 | 
			
		||||
	Expiry   time.Time
 | 
			
		||||
}
 | 
			
		||||
@ -91,6 +92,7 @@ func Parse(tokenString string) (*TokenResp, error) {
 | 
			
		||||
 | 
			
		||||
	if claims, ok := token.Claims.(*Claims); ok {
 | 
			
		||||
		return &TokenResp{
 | 
			
		||||
			tokenString,
 | 
			
		||||
			claims.IdentityKey,
 | 
			
		||||
			claims.ExpiresAt.Time,
 | 
			
		||||
		}, nil
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user