Skip to content

Commit

Permalink
fix: fix not getting correct cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Jun 16, 2024
1 parent 5ece10a commit abae6b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.panomc.platform.auth

import com.panomc.platform.AppConstants
import com.panomc.platform.db.DatabaseManager
import com.panomc.platform.db.model.Permission
import com.panomc.platform.error.LoginEmailNotVerified
Expand Down Expand Up @@ -136,7 +137,7 @@ class AuthProvider(
fun getTokenFromRoutingContext(routingContext: RoutingContext): String? {
val request = routingContext.request()

val jwtCookie = request.getCookie("pano_jwt")
val jwtCookie = request.getCookie(AppConstants.COOKIE_PREFIX + AppConstants.JWT_COOKIE_NAME)

if (jwtCookie != null) {
return jwtCookie.value
Expand Down

0 comments on commit abae6b5

Please sign in to comment.