Middleware - #4
Open
hamid-JTG wants to merge 13 commits into
Open
Conversation
hamid-JTG
force-pushed
the
middleware
branch
2 times, most recently
from
March 4, 2025 12:33
b1167f8 to
f82b865
Compare
hamid-JTG
force-pushed
the
middleware
branch
2 times, most recently
from
March 5, 2025 12:41
ac264f8 to
200b019
Compare
hamid-JTG
force-pushed
the
middleware
branch
2 times, most recently
from
March 6, 2025 10:59
b1810ab to
a66ccf3
Compare
hamid-JTG
force-pushed
the
login
branch
2 times, most recently
from
March 6, 2025 12:21
fa9e66f to
ed52549
Compare
rahulgarg03
suggested changes
Mar 7, 2025
Comment on lines
+22
to
+23
| if len(authHeader) > 7 && authHeader[:7] == "Bearer " { | ||
| tokenString = authHeader[7:] |
There was a problem hiding this comment.
there is a better way to split the string from space and take second element of array
|
|
||
| func AuthMiddleware() gin.HandlerFunc { | ||
| return func(c *gin.Context) { | ||
| authHeader := c.GetHeader("Authorization") |
hamid-JTG
force-pushed
the
middleware
branch
2 times, most recently
from
March 7, 2025 09:17
12f4fd9 to
e5ee997
Compare
hamid-JTG
force-pushed
the
login
branch
2 times, most recently
from
March 7, 2025 11:48
63f8421 to
b445da5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.