Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

17 wiersze
563 B

  1. import {apiPath} from "./utils"
  2. export default {
  3. loginEndpoint: `${apiPath}/login`,
  4. registerEndpoint: `${apiPath}/register`,
  5. refreshEndpoint: `${apiPath}/refresh-token`,
  6. logoutEndpoint: `/jwt/logout`,
  7. // ** This will be prefixed in authorization header with token
  8. // ? e.g. Authorization: Bearer <token>
  9. tokenType: 'Bearer',
  10. // ** Value of this property will be used as key to store JWT token in storage
  11. storageTokenKeyName: 'accessToken',
  12. storageRefreshTokenKeyName: 'refreshToken',
  13. storageUserRoleKeyName: 'role'
  14. }