mirror of
https://github.com/yourselfhosted/slash.git
synced 2025-06-05 22:09:34 +02:00
chore: extract jwt from server to api
This commit is contained in:
@@ -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"`
|
||||
|
Reference in New Issue
Block a user