Skip to content

Commit d00e5c6

Browse files
authored
FIXED auth service (#34)
1 parent 6df363d commit d00e5c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/hrv/mart/apigatewayadmin/service/AuthService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ class AuthService (
1111
private val authRepository: AuthRepository
1212
)
1313
{
14+
private val specialCharCode= 34
1415
fun login(appwriteJWT: String, response: ServerHttpResponse) =
1516
authRepository
1617
.createAdminAuth(
17-
jwt = appwriteJWT,
18+
jwt = appwriteJWT.replace(specialCharCode.toChar().toString(), ""),
1819
response = response
1920
)
2021
}

0 commit comments

Comments
 (0)