Skip to content

Commit 3a10898

Browse files
committed
fix: auth token always thought as V2
1 parent 8c544df commit 3a10898

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
@@ -255,7 +255,7 @@ func GetAuthFromReq(c *fiber.Ctx) (*string, *string, *string, *string, error) {
255255
encryptionKey = strings.ReplaceAll(encryptionKey, "_", "/")
256256

257257
// Now onto getting the access token from the database.
258-
accessJwt, refreshJwt, access_expiry, refresh_expiry, userPDS, err = db_controller.GetToken(string(userDID), string(tokenUUID), encryptionKey, 2) // Use token version 2 for OAuth
258+
accessJwt, refreshJwt, access_expiry, refresh_expiry, userPDS, err = db_controller.GetToken(string(userDID), string(tokenUUID), encryptionKey, tokenType) // Use token version 2 for OAuth
259259

260260
if err != nil {
261261
return nil, &fallbackRoute, nil, nil, err

0 commit comments

Comments
 (0)