refresh token in cookie

This commit is contained in:
nquidox 2025-09-08 22:38:30 +03:00
parent 51ee003b24
commit 20a5361a06
2 changed files with 17 additions and 20 deletions

View file

@ -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)
}