PetrusCustomConfig - AckeeCZ/petrus Wiki
Interface: PetrusCustomConfig<Config>
Type parameters
Name | Type |
---|---|
Config |
extends PetrusConfig = PetrusConfig
|
Table of contents
Properties
Properties
handlers
• handlers: Config
["handlers"
]
Defined in
initialState
• Optional
initialState: Partial
<PetrusEntitiesState
>
Initial state of the entities
reducer.
Defined in
logger
• Optional
logger: Config
["logger"
]
default
Console
Defined in
mapStorageDriverToTokensPersistence
• Optional
mapStorageDriverToTokensPersistence: Partial
<Record
<TokensPersistence
, StorageDriver
>>
Set a custom storage driver for a given TokensPersistence
.
Defined in
oAuth
• Optional
oAuth: Object
Type declaration
Name | Type |
---|---|
enforceAccessTokenScheme? |
Config ["oAuth" ]["enforceAccessTokenScheme" ] |
enforceRefreshTokenScheme? |
Config ["oAuth" ]["enforceRefreshTokenScheme" ] |
fetchAccessToken? |
Config ["oAuth" ]["fetchAccessToken" ] |
origin |
Config ["oAuth" ]["origin" ] |
parseRedirectUrlParams? |
Config ["oAuth" ]["parseRedirectUrlParams" ] |
processTokens? |
Config ["oAuth" ]["processTokens" ] |
redirectPathname |
Config ["oAuth" ]["redirectPathname" ] |
validateRedirectUrl? |
Config ["oAuth" ]["validateRedirectUrl" ] |
Defined in
selector
• selector: Config
["selector"
]
This function must return petrus reducer from your application root state, so you can set it on nested level or on different path.
default
(state) => state.auth
Defined in
tokens
• Optional
tokens: Partial
<Config
["tokens"
]>