fixed jwt verification
All checks were successful
build and deploy kleinTodo / build (push) Successful in 12s
All checks were successful
build and deploy kleinTodo / build (push) Successful in 12s
This commit is contained in:
parent
298c5bbaeb
commit
aec751a7d1
@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func GetVerifiedUser(r *http.Request) (string, error) {
|
func GetVerifiedUser(r *http.Request) (string, error) {
|
||||||
verifyJWT, err := VerifyJWT(strings.TrimPrefix(r.Header.Get(common.AuthHeader), "Bearer \t"))
|
verifyJWT, err := VerifyJWT(strings.TrimPrefix(r.Header.Get(common.AuthHeader), "Bearer "))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user