Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

token might contain string "bearer" #32

Open
ahmetb opened this issue Jan 26, 2022 · 0 comments
Open

token might contain string "bearer" #32

ahmetb opened this issue Jan 26, 2022 · 0 comments

Comments

@ahmetb
Copy link

ahmetb commented Jan 26, 2022

tokenString := strings.TrimSpace(strings.ReplaceAll(ctx.GetHeader("Authorization"), "bearer", ""))

this line can replace a bearer occurrence in the middle of a token. fyi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant