Skip to content

Commit 52ef4d1

Browse files
committed
fix for the return to parameter
1 parent 40a18c8 commit 52ef4d1

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

01-Login/src/Auth/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class Auth {
8585
localStorage.removeItem('isLoggedIn');
8686

8787
this.auth0.logout({
88-
return_to: window.location.origin
88+
returnTo: window.location.origin
8989
});
9090

9191
// navigate to the home route

02-User-Profile/src/Auth/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default class Auth {
9999
localStorage.removeItem('isLoggedIn');
100100

101101
this.auth0.logout({
102-
return_to: window.location.origin
102+
returnTo: window.location.origin
103103
});
104104

105105
// navigate to the home route

03-Calling-an-API/src/Auth/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default class Auth {
100100
localStorage.removeItem('isLoggedIn');
101101

102102
this.auth0.logout({
103-
return_to: window.location.origin
103+
returnTo: window.location.origin
104104
});
105105

106106
// navigate to the home route

04-Authorization/src/Auth/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class Auth {
109109
localStorage.removeItem('isLoggedIn');
110110

111111
this.auth0.logout({
112-
return_to: window.location.origin
112+
returnTo: window.location.origin
113113
});
114114

115115
// navigate to the home route

05-Token-Renewal/src/Auth/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class Auth {
108108
localStorage.removeItem('isLoggedIn');
109109

110110
this.auth0.logout({
111-
return_to: window.location.origin
111+
returnTo: window.location.origin
112112
});
113113

114114
// navigate to the home route

0 commit comments

Comments
 (0)