Get password status
GET
/_torii/auth/password-status
const url = 'https://your-app.torii.so/_torii/auth/password-status';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-app.torii.so/_torii/auth/password-statusReturns whether the current user has a password set. SDKs use this to decide whether the ‘change password’ form must collect the current password (true) or is setting a password for the first time (false — typical for OAuth-only accounts).
Responses
Section titled “ Responses ”OK
Media type application/json
object
hasPassword
required
boolean
Example generated
{ "hasPassword": true}