File tree 3 files changed +10
-2
lines changed
react-static-web-apps-auth
3 files changed +10
-2
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.0] - 2024-03-26
4
+
5
+ ### Added
6
+
7
+ - Ability to provide a custom label to ` UserPurge `
8
+
3
9
## [ 1.6.1] - 2024-01-17
4
10
5
11
## Added
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @aaronpowell/react-static-web-apps-auth" ,
3
- "version" : " 1.6 .0" ,
3
+ "version" : " 1.7 .0" ,
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 @@ -5,9 +5,11 @@ import { AuthProviders } from "./types";
5
5
const UserPurge = ( {
6
6
globally,
7
7
provider,
8
+ label
8
9
} : {
9
10
globally : boolean ;
10
11
provider : AuthProviders ;
12
+ label ?: string
11
13
} ) => {
12
14
const host = globally ? "identity.azurestaticapps.net" : location . hostname ;
13
15
@@ -16,7 +18,7 @@ const UserPurge = ({
16
18
href = { `https://${ host } /.auth/purge/${ provider } ` }
17
19
className = { `purge ${ StaticWebAppsClassName } ` }
18
20
>
19
- Purge user information
21
+ { label ?? " Purge user information" }
20
22
</ a >
21
23
) ;
22
24
} ;
You can’t perform that action at this time.
0 commit comments