Serhii
12/03/2025, 12:04 PMhttps://api.descope.com/v1/auth/refresh endpoint.
I'm using ruby SDK and when I'm calling .refresh_session it returns refreshSessionToken but not sessionToken.
I checked debug logs and see that endpoint returns empty refresh and session tokens, SDK falling back to refresh token that I provided and return me this as a result.
I can't understand from this logs why it behaves like this.
I have 2 projects (local and staging), both almost the same, created via terraform. For local it works fine, for staging it's not. Could someone help me debug it?Reuven Zabirov
12/03/2025, 12:10 PMRahul Rijhwani
12/03/2025, 12:11 PMRahul Rijhwani
12/03/2025, 1:06 PMPOST /v1/mgmt/tenant/settings
With parameters like:
• refreshTokenExpiration and refreshTokenExpirationUnit
• sessionTokenExpiration and sessionTokenExpirationUnit
• enableInactivity, inactivityTime, and inactivityTimeUnit
For your staging vs local issue: Compare these settings between your two projects, as differences in token expiration or storage method (cookies vs response body) could explain why one works and the other doesn't.Serhii
12/03/2025, 1:14 PMSerhii
12/03/2025, 1:14 PMRahul Rijhwani
12/03/2025, 1:15 PMSerhii
12/03/2025, 1:21 PMRahul Rijhwani
12/03/2025, 2:51 PMSerhii
12/03/2025, 2:53 PMSerhii
12/03/2025, 2:53 PMNick Rodriguez
12/03/2025, 3:09 PMReuven Zabirov
12/09/2025, 8:59 AM