chore: extract jwt from server to api

This commit is contained in:
Steven
2023-06-24 13:58:38 +08:00
parent c4388fb211
commit 0a811d2568
8 changed files with 41 additions and 48 deletions

View File

@ -12,14 +12,6 @@ import (
"golang.org/x/crypto/bcrypt"
)
var (
userIDContextKey = "user-id"
)
func getUserIDContextKey() string {
return userIDContextKey
}
type SignInRequest struct {
Email string `json:"email"`
Password string `json:"password"`