feat: added session guid and token type fields to jwt tokens;
feat: very minimal implementation of registration functions; refactor: login function now uses the transactional db helper function and creates a session; feat: enum for jwt token type
This commit is contained in:
@@ -29,3 +29,9 @@ const (
|
||||
UserRole
|
||||
AdminRole
|
||||
)
|
||||
|
||||
type JwtTokenType int32
|
||||
const (
|
||||
JwtAccessTokenType JwtTokenType = iota
|
||||
JwtRefreshTokenType
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user