mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-10-31 08:39:10 +08:00 
			
		
		
		
	fix(session): kv is not initialized
This commit is contained in:
		| @ -71,13 +71,15 @@ type Claims struct { | ||||
| } | ||||
|  | ||||
| // NewTokenAuth creates a new token based auth provider. | ||||
| func NewTokenAuth(idEncoder hashid.Encoder, s setting.Provider, secret []byte, userClient inventory.UserClient, l logging.Logger) TokenAuth { | ||||
| func NewTokenAuth(idEncoder hashid.Encoder, s setting.Provider, secret []byte, userClient inventory.UserClient, | ||||
| 	l logging.Logger, kv cache.Driver) TokenAuth { | ||||
| 	return &tokenAuth{ | ||||
| 		idEncoder:  idEncoder, | ||||
| 		s:          s, | ||||
| 		secret:     secret, | ||||
| 		userClient: userClient, | ||||
| 		l:          l, | ||||
| 		kv:         kv, | ||||
| 	} | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Aaron Liu
					Aaron Liu