We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2ab69 commit 57606dbCopy full SHA for 57606db
src/auth-module/auth-module.state.ts
@@ -3,12 +3,17 @@ eslint
3
@typescript-eslint/explicit-function-return-type: 0,
4
@typescript-eslint/no-explicit-any: 0
5
*/
6
-export default function setupAuthState({ userService, serverAlias }) {
+export default function setupAuthState({
7
+ userService,
8
+ serverAlias,
9
+ responseEntityField = 'user',
10
+ entityIdField = 'userId'
11
+}) {
12
const state = {
13
accessToken: null, // The JWT
14
payload: null, // The JWT payload
- entityIdField: 'userId',
- responseEntityField: 'user',
15
+ entityIdField,
16
+ responseEntityField,
17
18
isAuthenticatePending: false,
19
isLogoutPending: false,
0 commit comments