@@ -36,7 +36,8 @@ export type AccountsClientConfiguration = AccountsCommonConfiguration & {
36
36
onVerifyEmailHook ?: Function ,
37
37
onSignedInHook ?: Function ,
38
38
onSignedOutHook ?: Function ,
39
- loginOnSignUp ?: boolean
39
+ loginOnSignUp ?: boolean ,
40
+ history ?: Object
40
41
} ;
41
42
42
43
export default {
@@ -63,10 +64,10 @@ export default {
63
64
// onSubmitHook: () => {},
64
65
// onPreSignUpHook: () => new Promise(resolve => resolve()),
65
66
// onPostSignUpHook: () => {},
66
- onEnrollAccountHook : ( ) => redirect ( AccountsClient . options ( ) . loginPath ) ,
67
- onResetPasswordHook : ( ) => redirect ( AccountsClient . options ( ) . loginPath ) ,
68
- onVerifyEmailHook : ( ) => redirect ( AccountsClient . options ( ) . profilePath ) ,
69
- onSignedInHook : ( ) => redirect ( AccountsClient . options ( ) . homePath ) ,
70
- onSignedOutHook : ( ) => redirect ( AccountsClient . options ( ) . signOutPath ) ,
67
+ onEnrollAccountHook : ( ) => redirect ( AccountsClient . options ( ) . loginPath || '/' ) ,
68
+ onResetPasswordHook : ( ) => redirect ( AccountsClient . options ( ) . loginPath || '/' ) ,
69
+ onVerifyEmailHook : ( ) => redirect ( AccountsClient . options ( ) . profilePath || '/' ) ,
70
+ onSignedInHook : ( ) => redirect ( AccountsClient . options ( ) . homePath || '/' ) ,
71
+ onSignedOutHook : ( ) => redirect ( AccountsClient . options ( ) . signOutPath || '/' ) ,
71
72
loginOnSignUp : true ,
72
73
} ;
0 commit comments