Maor Bar
12/02/2025, 2:36 PM{
"errorCode": "E011002",
"errorDescription": "Request is missing required arguments",
"errorMessage": "Missing JWT for refresh session",
"message": "Missing JWT for refresh session"
}
2. When our users try to log out from the platform, they receive an error, and the page refreshes. The session doesn't end, and the UI does not log out. this call https://auth.app.pillar.security/v1/auth/logout get 400 and this error
{
"errorCode": "E064004",
"errorDescription": "JWT not present for logout",
"errorMessage": "Missing JWT for logout",
"message": "Missing JWT for logout"
}
What should I do? This is not happening in the staging or local environment.Meir Wahnon
12/02/2025, 3:09 PMMeir Wahnon
12/02/2025, 3:11 PMMeir Wahnon
12/02/2025, 3:12 PMMaor Bar
12/02/2025, 3:29 PMMeir Wahnon
12/02/2025, 4:28 PMMeir Wahnon
12/02/2025, 4:29 PMMaor Bar
12/02/2025, 4:35 PMMaor Bar
12/02/2025, 9:08 PMChris Carper
12/02/2025, 9:38 PMauth.app.pillar.security or app.pillar.security cookie?Maor Bar
12/02/2025, 10:05 PMAsaf Shen
12/03/2025, 7:30 AMMaor Bar
12/03/2025, 8:21 AMAsaf Shen
12/03/2025, 8:53 AMMaor Bar
12/03/2025, 9:02 AMAsaf Shen
12/03/2025, 9:37 AM/next request if you are using flow)Asaf Shen
12/03/2025, 9:42 AMMaor Bar
12/03/2025, 9:55 AMMaor Bar
12/03/2025, 9:56 AM"cookieDomain": "app.pillar.security",
"cookiePath": "/",
"cookieMaxAge": 43199,
"cookieExpiration": 1764797909,Asaf Shen
12/03/2025, 11:42 AMMaor Bar
12/03/2025, 11:43 AMAsaf Shen
12/03/2025, 11:45 AMMaor Bar
12/03/2025, 11:45 AMAsaf Shen
12/03/2025, 11:47 AMMaor Bar
12/03/2025, 12:09 PMAsaf Shen
12/03/2025, 12:09 PMMaor Bar
12/03/2025, 12:12 PMMaor Bar
12/03/2025, 2:04 PMAsaf Shen
12/03/2025, 2:05 PMMaor Bar
12/03/2025, 2:06 PMAsaf Shen
12/03/2025, 4:54 PMMaor Bar
12/03/2025, 5:02 PMMaor Bar
12/03/2025, 5:06 PMAsaf Shen
12/03/2025, 5:08 PMMaor Bar
12/03/2025, 5:10 PM@descope/nextjs-sdk and we also use the logout function from the SDK.Maor Bar
12/03/2025, 5:11 PMAsaf Shen
12/03/2025, 5:12 PMMaor Bar
12/03/2025, 5:12 PMMaor Bar
12/03/2025, 5:13 PMAsaf Shen
12/03/2025, 5:14 PMMaor Bar
12/03/2025, 5:15 PMAsaf Shen
12/03/2025, 5:25 PMAsaf Shen
12/03/2025, 5:40 PMsdk.logout()
document.cookie = `DS=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${window.location.hostname}; secure`;
so your code should temporary do something like this
import { useDesope
const sdk = useDesopeMaor Bar
12/03/2025, 5:50 PMAsaf Shen
12/03/2025, 6:37 PMI think the issue is somewhat in our side
as a workaround, until we fix this (which will require a new sdk ) I suggest to run the following before calling descope's sdk.logout()
document.cookie = `DS=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${window.location.hostname}; secure`;
so your code should temporary do something like this
import { useDesope } from '@descope/nextjs-sdk/client'
...
const sdk = useDesope()
const doLogout = () => {
// temporary workaround, until descope fixes the logout
document.cookie = `DS=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${window.location.hostname}; secure`
sdk.logout()
}
return <> <button onClick={doLogout}> sign-out</button> </>
}Maor Bar
12/03/2025, 6:42 PMAsaf Shen
12/03/2025, 7:21 PMMaor Bar
12/04/2025, 5:45 AMAsaf Shen
12/04/2025, 6:28 AMAsaf Shen
12/04/2025, 6:28 AM@descope/nextjs-sdk package)Maor Bar
12/04/2025, 6:30 AMAsaf Shen
12/04/2025, 10:22 AM0.14.50 should contain the fix, let me know if there any feedbackMaor Bar
12/04/2025, 10:25 AM@descope/nextjs-sdk: 0.14.50
?Maor Bar
12/04/2025, 11:56 AMAsaf Shen
12/04/2025, 11:56 AMMaor Bar
12/04/2025, 11:56 AM