2021-07-21 23:04:00 +00:00
|
|
|
package token
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2021-09-20 18:25:08 +00:00
|
|
|
|
2021-09-29 20:35:39 +00:00
|
|
|
"source.toby3d.me/website/oauth/internal/domain"
|
2021-07-21 23:04:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type UseCase interface {
|
2021-09-29 20:35:39 +00:00
|
|
|
Verify(ctx context.Context, accessToken string) (*domain.Token, error)
|
2021-09-23 17:46:44 +00:00
|
|
|
Revoke(ctx context.Context, accessToken string) error
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|