File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
react-static-web-apps-auth Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog for ` react-static-web-apps-auth `
22
3+ ## [ 1.7.0] - 2024-03-26
4+
5+ ### Added
6+
7+ - Ability to provide a custom label to ` UserPurge `
8+
39## [ 1.6.1] - 2024-01-17
410
511## Added
Original file line number Diff line number Diff line change 11{
22 "name" : " @aaronpowell/react-static-web-apps-auth" ,
3- "version" : " 1.6 .0" ,
3+ "version" : " 1.7 .0" ,
44 "description" : " A library to help creating authenticated React apps on Azure Static Web Apps" ,
55 "main" : " build/index.js" ,
66 "types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import { AuthProviders } from "./types";
55const UserPurge = ( {
66 globally,
77 provider,
8+ label
89} : {
910 globally : boolean ;
1011 provider : AuthProviders ;
12+ label ?: string
1113} ) => {
1214 const host = globally ? "identity.azurestaticapps.net" : location . hostname ;
1315
@@ -16,7 +18,7 @@ const UserPurge = ({
1618 href = { `https://${ host } /.auth/purge/${ provider } ` }
1719 className = { `purge ${ StaticWebAppsClassName } ` }
1820 >
19- Purge user information
21+ { label ?? " Purge user information" }
2022 </ a >
2123 ) ;
2224} ;
You can’t perform that action at this time.
0 commit comments