aboutsummaryrefslogtreecommitdiff
path: root/internal/auth/repo.go
blob: 9a0420edc8a6f376a82241de608a09391e588c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package auth

import (
	"git.ofmax.li/iserv/internal/goog"
	"golang.org/x/oauth2"
)

// Repo storage interface
type Repo interface {
	IsAuthorized(gp *goog.GoogleProfile) (bool, error)
	LookUpAuthProfileID(gp *goog.GoogleProfile) (string, error)
	SaveAuthProfile(email string, ap *Profile) error
	CheckProfileID(id string) (bool, error)
	GetProfileToken(id string) (*oauth2.Token, error)
}