File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
react-static-web-apps-auth Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog for ` react-static-web-apps-auth `
2
2
3
+ ## [ 1.7.2] - 2024-03-27
4
+
5
+ ### Fixed
6
+
7
+ - Localhost path for user perge didn't respect port number or prototcol
8
+
3
9
## [ 1.7.1] - 2024-03-26
4
10
5
- ## Added
11
+ ### Added
6
12
7
13
- Custom render function support for User Purge component
8
14
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @aaronpowell/react-static-web-apps-auth" ,
3
- "version" : " 1.7.1 " ,
3
+ "version" : " 1.7.2 " ,
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 @@ -19,8 +19,10 @@ const UserPurge = ({
19
19
label ?: string ;
20
20
customRenderer ?: ( props : UserPurgeRenderProps ) => JSX . Element ;
21
21
} ) => {
22
- const host = globally ? "identity.azurestaticapps.net" : location . hostname ;
23
- const href = `https://${ host } /.auth/purge/${ provider } ` ;
22
+ const host = globally
23
+ ? "https://identity.azurestaticapps.net"
24
+ : location . origin ;
25
+ const href = `${ host } /.auth/purge/${ provider } ` ;
24
26
const className = `purge ${ StaticWebAppsClassName } ` ;
25
27
26
28
return customRenderer ? (
You can’t perform that action at this time.
0 commit comments