File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ export default function withAuthProvider<T extends React.Component<AuthComponent
6161
6262 render ( ) {
6363 return < WrappedComponent
64- error = { this . state . error }
65- isAuthenticated = { this . state . isAuthenticated }
66- user = { this . state . user }
67- login = { ( ) => this . login ( ) }
68- logout = { ( ) => this . logout ( ) }
69- getAccessToken = { ( scopes : string [ ] ) => this . getAccessToken ( scopes ) }
70- setError = { ( message : string , debug : string ) => this . setErrorMessage ( message , debug ) }
71- { ...this . props } /> ;
64+ error = { this . state . error }
65+ isAuthenticated = { this . state . isAuthenticated }
66+ user = { this . state . user }
67+ login = { ( ) => this . login ( ) }
68+ logout = { ( ) => this . logout ( ) }
69+ getAccessToken = { ( scopes : string [ ] ) => this . getAccessToken ( scopes ) }
70+ setError = { ( message : string , debug : string ) => this . setErrorMessage ( message , debug ) }
71+ { ...this . props } /> ;
7272 }
7373
7474 async login ( ) {
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ In this section you'll create an authentication provider and implement sign-in a
8383 user = { this .state .user }
8484 login = { () => this .login () }
8585 logout = { () => this .logout () }
86- getAccessToken = { (scopes : string []) => this .getAccessToken (scopes )}
87- setError = { (message : string , debug : string ) => this .setErrorMessage (message , debug )}
88- {... this .props } { ... this . state } />;
86+ getAccessToken = { (scopes : string []) => this .getAccessToken (scopes ) }
87+ setError = { (message : string , debug : string ) => this .setErrorMessage (message , debug ) }
88+ { ... this .props } />;
8989 }
9090
9191 async login() {
You can’t perform that action at this time.
0 commit comments