auth/internal/profile/usecase.go
Maxim Lebedev 3b0ebb3690
Some checks failed
continuous-integration/drone Build is failing
🚚 Renamed module due project migration
2022-03-13 15:58:34 +05:00

18 lines
385 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",
)