Start a native link
const url = 'http://127.0.0.1:8080/api/v1/auth/example/native-link-tickets';const options = { method: 'POST', headers: { Origin: 'example', 'X-CSRF-Token': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"code_challenge":"example","code_challenge_method":"S256"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8080/api/v1/auth/example/native-link-tickets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Origin: example' \ --header 'X-CSRF-Token: example' \ --data '{ "code_challenge": "example", "code_challenge_method": "S256" }'Available only when account authentication is enabled. Provider configuration is restart-bound. Local logout does not require an external provider. Responses must not be cached.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Base64url SHA-256 of the app’s code verifier, without padding. The native entry must present the same challenge.
Responses
Section titled “Responses”Requires authentication within the last five minutes. Returns a one-minute, single-use ticket bound to the current session and the PKCE challenge. Pass it as link_ticket to begin-native-provider-login with the same challenge.
object
Example generated
{ "link_ticket": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
object
Example generated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}