2025-07-06 22:25:10 +03:00
|
|
|
package interfaces
|
|
|
|
|
|
2025-09-08 22:38:30 +03:00
|
|
|
import (
|
|
|
|
|
"net/http"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-06 22:25:10 +03:00
|
|
|
type JWTProvider interface {
|
2025-09-08 23:58:44 +03:00
|
|
|
CreateAccessToken(userUuid, sessionUuid string) (string, error)
|
2025-09-08 22:38:30 +03:00
|
|
|
CreateRefreshToken(refreshUuid string, expires time.Time) *http.Cookie
|
2025-09-10 19:26:54 +03:00
|
|
|
Parse(token string) (string, error)
|
2025-09-14 14:13:35 +03:00
|
|
|
RefreshExpires() time.Duration
|
2025-07-06 22:25:10 +03:00
|
|
|
}
|