cURL
curl --request POST \ --url https://api.example.com/api/users/me/set-password \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "password": "<string>" } '
{ "ok": true }
Sets a password for users who signed up via social login or magic link. Required before enabling TOTP two-factor authentication.
8
Default Response
Was this page helpful?