# new AuthStore()
Constructor. Uses mobx's makeObservable to register actions and observable elements.
Members
# static this.accessToken
A string representing the OAuth2 access token issued to the user when they authenticate. It is sent in the Authorization header of all subsequent XHR requests in order to use authorized API endpoints. For more information on OAuth2 and OpenIdConnect, visit https://openid.net/connect/ and https://oauth.net/2/.
# static this.refreshToken
A string representing the OAuth2 refresh token issued to the user when they authenticate. It is sent to the identity provider to retrieve a new access token when the previous access token expires.
# accessToken
A string representing the OAuth2 access token issued to the user when they authenticate. It is sent in the Authorization header of all subsequent XHR requests in order to use authorized API endpoints. For more information on OAuth2 and OpenIdConnect, visit https://openid.net/connect/ and https://oauth.net/2/.
# refreshToken
A string representing the OAuth2 refresh token issued to the user when they authenticate. It is sent to the identity provider to retrieve a new access token when the previous access token expires.
# userId
A string representing the OAuth2 refresh token issued to the user when they authenticate. It is used to retrieve the users information from the API and to link objects created by the user to the user.
# userId
A string representing the OAuth2 refresh token issued to the user when they authenticate. It is used to retrieve the users information from the API and to link objects created by the user to the user.
Methods
# async setAccessTokenAsync()
Uses the given access token value to set accessToken
and the 'access' element in the secure store.
# async setIdAsync()
Uses the given user id value to set userId
and the 'id' element in the secure store.
# async setRefreshTokenAsync()
Uses the given refresh token value to set refreshToken
and the 'refresh' element in the secure store.