aboutsummaryrefslogtreecommitdiff
path: root/internal/auth/repo.go
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2020-08-14 23:13:41 -0700
committerMax Resnick <max@ofmax.li>2020-11-08 07:57:13 -0800
commit689a57ec4a444f8233fe2e5ec7ceb0903218218d (patch)
tree1bcfe6786c38b4ae11997d5d97dc3c5fba747b97 /internal/auth/repo.go
parent77c2e6aca2dc0f851f55e30a0f49c9ee7c2c952e (diff)
downloadiserv-master.tar.gz
feat: working login gauthHEADmaster
Diffstat (limited to 'internal/auth/repo.go')
-rw-r--r--internal/auth/repo.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/auth/repo.go b/internal/auth/repo.go
new file mode 100644
index 0000000..f404c94
--- /dev/null
+++ b/internal/auth/repo.go
@@ -0,0 +1,8 @@
+package auth
+
+// Repo storage interface
+type Repo interface {
+ IsAuthorized(gp *GoogleAuthProfile) (bool, error)
+ LookUpAuthProfileID(gp *GoogleAuthProfile) (string, error)
+ SaveAuthProfile(ap *Profile) error
+}