Skip to content

Commit d740dc7

Browse files
committed
fix: invert the previous commit check to make it actually work
1 parent da52821 commit d740dc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

twitterv1/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func GetAuthFromReq(c *fiber.Ctx) (*string, *string, *string, *string, error) {
121121
// Replace URL-friendly characters with original base64 characters
122122

123123
// Check that we have at least 3 segments
124-
if len(oauthTokenSegments) == 3 {
124+
if len(oauthTokenSegments) != 3 {
125125
return nil, &fallbackRoute, nil, nil, errors.New("invalid oauth token")
126126
}
127127

0 commit comments

Comments
 (0)