created: jwt provider
This commit is contained in:
parent
7e5010ac78
commit
bc2038ef34
3 changed files with 139 additions and 0 deletions
7
internal/interfaces/jwtProvider.go
Normal file
7
internal/interfaces/jwtProvider.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package interfaces
|
||||
|
||||
type JWTProvider interface {
|
||||
CreateAccessToken(userUuid string) (string, error)
|
||||
CreateRefreshToken(userUuid, tokenUuid string) (string, int64, error)
|
||||
Parse(token string) (string, string, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue