Remember Tenant

NOTE: Callers of this API need to redirect to this endpoint instead of making a direct API call in order to ensure that the remembered_tenants cookie is set properly. The redirect must use the application vanity domain.

Remembers the tenant associated to either the auth_session_code or authorization_code - depending on which one was passed in the request. Tenants are remembered by storing them in a remembered_tenants cookie. The remembered_tenants cookie can only store up to 10 tenants. If this capacity limit is reached, then the tenant that was logged into last will be removed.

After the request completes, a 302 redirect response will be returned. The location of the redirect will be the value of the redirect_url query param provided in the request. If an auth_session_code was provided in the request then an auth_session_code query param will be appended to the redirect_url containing the value of the auth_session_code request query param. If an authorization_code was provided in the request then a code query param will be appended to the redirect_url containing the value of the authorization_code request query param.

Language
URL
Click Try It! to start a request and see the response here!