aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/auth.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-27 21:07:16 +0900
committernsfisis <nsfisis@gmail.com>2024-07-27 21:07:16 +0900
commit3ca36032c7aabbc7b8cee8f0f59d18d1264242ae (patch)
treede34134feb14d53f3a31e34ab8e2d8c9af9adc67 /backend/auth.go
parentb70fa3abf9c96871cc3e39090e9a00da4ad87b8b (diff)
downloadiosdc-japan-2024-albatross-3ca36032c7aabbc7b8cee8f0f59d18d1264242ae.tar.gz
iosdc-japan-2024-albatross-3ca36032c7aabbc7b8cee8f0f59d18d1264242ae.tar.zst
iosdc-japan-2024-albatross-3ca36032c7aabbc7b8cee8f0f59d18d1264242ae.zip
backend: jwt
Diffstat (limited to 'backend/auth.go')
-rw-r--r--backend/auth.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/backend/auth.go b/backend/auth.go
deleted file mode 100644
index 7cf0c58..0000000
--- a/backend/auth.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package main
-
-import (
- "context"
- "fmt"
-
- "github.com/nsfisis/iosdc-2024-albatross-backend/db"
-)
-
-func authLogin(ctx context.Context, queries *db.Queries, username, password string) (int, error) {
- userAuth, err := queries.GetUserAuthFromUsername(ctx, username)
- if err != nil {
- return 0, err
- }
- if userAuth.AuthType == "bypass" {
- return int(userAuth.UserID), nil
- }
- return 0, fmt.Errorf("not implemented")
-}