Passa al contenuto principale

Auth

Authentication APIs provides the ability to authenticate a user and get a JWT token, refresh the JWT token, request a password reset, reset the password, signup a new user, confirm a family or admin user, and signout. The JWT token is used to authenticate the user in the other APIs and has exiration time of 10 min. In order to get a new JWT token after it has expired, the user can use the refresh-token endpoint. The refresh token is stored in an HttpOnly cookie that Javascript can never read and that's limited by path. The refresh token is used to renew the JWT token without the need to re-enter the credentials. The refresh token has an expiration time of 24 hours. For more details see the documentation of Yii2.