This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
backend/internal/auth/usecase.go

13 lines
325 B
Go
Raw Normal View History

2021-03-06 08:32:15 +00:00
package auth
import (
"context"
2022-09-20 16:46:47 +00:00
"gitea.dwysokinski.me/zdam-egzamin-zawodowy/backend/internal/model"
2021-03-06 08:32:15 +00:00
)
type Usecase interface {
2021-07-14 04:58:10 +00:00
SignIn(ctx context.Context, email, password string, staySignedIn bool) (*model.User, string, error)
ExtractAccessTokenMetadata(ctx context.Context, accessToken string) (*model.User, error)
2021-03-06 08:32:15 +00:00
}