List 2FA methods
GET
/v1/auth/2fa/methods
const url = 'https://api.parasta.io/v1/auth/2fa/methods';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api.parasta.io/v1/auth/2fa/methods \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
Media type application/json
object
methods
Array<object>
object
type
string
enabled
boolean
credentials
Array<object>
object
credentialId
string
registeredAt
string format: date-time
Example
{ "methods": [ { "type": "passkey" } ]}