This commit is contained in:
eson
2023-08-22 14:34:13 +08:00
parent 98f9c4396d
commit bfea775c0b
2 changed files with 56 additions and 54 deletions

View File

@@ -10,6 +10,9 @@ import (
)
func ParseJwtTokenHeader[T any](r *http.Request) (string, *T, error) {
//TODO:
var u T
return "", &u, nil
AuthKey := r.Header.Get("Authorization")
if AuthKey == "" {