auth/internal/profile/usecase.go
Maxim Lebedev c7bd73c63a
♻️ Drop HTTP delivery framework
replaced 'valyala/fasthttp' to native 'net/http' package, close #4
2023-01-16 06:43:07 +06:00

18 lines
384 B
Go

package profile
import (
"context"
"source.toby3d.me/toby3d/auth/internal/domain"
)
type UseCase interface {
Fetch(ctx context.Context, me domain.Me) (*domain.Profile, error)
}
var ErrScopeRequired error = domain.NewError(
domain.ErrorCodeInsufficientScope,
"token with 'profile' scopes is required to view profile data",
"https://indieauth.net/source/#user-information",
)