End Action

The End action terminates the flow and returns Descope tokens, successfully authenticating the user.

End Action

By default, Descope refresh tokens managed with cookies, will be returned in a cookie named DSR.

The Refresh Cookie Name field allows you to set a custom cookie name (e.g. refreshToken) as an alternative to the name DSR.

This particularly useful for avoiding cookie name conflicts, when using multiple Descope projects with different applications on the same root domain.

By default, most Descopers don’t manage session tokens as backend cookies and instead rely on the tokens returned in the response body.

However, our client SDKs automatically set the session token as a non-HttpOnly cookie, and you can enable the same behavior by turning on the sessionTokenViaCookie parameter in your AuthProvider.

By default, Descope session tokens managed with cookies, will be returned in a cookie named DS.

The Session Cookie Name field allows you to set a custom cookie name (e.g. sessionToken) as an alternative to the name DS.

This is particularly useful for avoiding cookie name conflicts, when using multiple Descope projects with different applications on the same root domain.

External Token Connector

The External Token Connector field allows you to configure an external connector so that an additional provider token is returned when the flow completes.

You can set a preferred connector at the project level, or override it per flow. If the same connector is used across multiple flows, you only need to configure it once at the project level.

Return Token after Flow

By default, a JWT is only issued when a flow involves user authentication.

The Return token after flow (without user authentication) option allows a JWT to be returned on flow completion even if no user login occurs.

This is useful for triggering connector logic, running risk or fraud assessments, or supporting flows that require a signed token for secure communication with downstream services without authenticating a user.

Was this helpful?

On this page