refresh token in cookie
This commit is contained in:
parent
51ee003b24
commit
20a5361a06
2 changed files with 17 additions and 20 deletions
|
|
@ -1,7 +1,12 @@
|
|||
package interfaces
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type JWTProvider interface {
|
||||
CreateAccessToken(userUuid string) (string, error)
|
||||
CreateRefreshToken(userUuid, tokenUuid string) (string, int64, error)
|
||||
CreateRefreshToken(refreshUuid string, expires time.Time) *http.Cookie
|
||||
Parse(token string) (string, string, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue