File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
react-static-web-apps-auth Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog for ` react-static-web-apps-auth `
2
2
3
+ ## [ 0.1.7] - 2021-03-11
4
+
5
+ ### Fixed
6
+
7
+ - Redirect URLs for login/logout didn't work due to a wrong query string
8
+
3
9
## [ 0.1.6] - 2021-03-11
4
10
5
11
### Changed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @aaronpowell/react-static-web-apps-auth" ,
3
- "version" : " 0.1.6 " ,
3
+ "version" : " 0.1.7 " ,
4
4
"description" : " A library to help creating authenticated React apps on Azure Static Web Apps" ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const Login = ({
14
14
return (
15
15
< a
16
16
href = { `/.auth/login/${ id } ${
17
- postLoginRedirect ? `?post_login_redirect =${ postLoginRedirect } ` : ""
17
+ postLoginRedirect ? `?post_login_redirect_uri =${ postLoginRedirect } ` : ""
18
18
} `}
19
19
className = { `${ id } login ${ StaticWebAppsClassName } ` }
20
20
>
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { StaticWebAppsClassName } from "./constants";
4
4
const Logout = ( { postLogoutRedirect } : { postLogoutRedirect ?: string } ) => (
5
5
< a
6
6
href = { `/.auth/logout${
7
- postLogoutRedirect ? `?post_logout_redirect=${ postLogoutRedirect } ` : ""
7
+ postLogoutRedirect
8
+ ? `?post_logout_redirect_uri=${ postLogoutRedirect } `
9
+ : ""
8
10
} `}
9
11
className = { `logout ${ StaticWebAppsClassName } ` }
10
12
>
You can’t perform that action at this time.
0 commit comments