Added some error handling so errors dissapearing.
This commit is contained in:
		
							parent
							
								
									25d7874104
								
							
						
					
					
						commit
						9dbc2b5664
					
				| @ -362,7 +362,13 @@ $(function () { | |||||||
|   function handleAuthorizationDialog() { |   function handleAuthorizationDialog() { | ||||||
|     return getSession(CONFIG.host).then(function (session) { |     return getSession(CONFIG.host).then(function (session) { | ||||||
|       return getGrants(session); |       return getGrants(session); | ||||||
|     }).catch(function () { |     }).catch(function (e) { | ||||||
|  |       if(e) { | ||||||
|  |         console.error( | ||||||
|  |             "Error authing current session. Requiring re-login. Message: " | ||||||
|  |             , e.message | ||||||
|  |         ); | ||||||
|  |       } | ||||||
|       // TODO select the providers the client wants to show
 |       // TODO select the providers the client wants to show
 | ||||||
|       // providers=daplie.com,facebook.com,google.com // etc
 |       // providers=daplie.com,facebook.com,google.com // etc
 | ||||||
|       // TODO let the client specify switch_user
 |       // TODO let the client specify switch_user
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user