Refresh token notes
This commit is contained in:
		
							parent
							
								
									d3355370fd
								
							
						
					
					
						commit
						744f5be2a4
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
// Note: this is here for user lockout authentication
 | 
			
		||||
import Ember from 'ember';
 | 
			
		||||
import JwtTokenAuthenticator from 'simple-auth-token/authenticators/jwt';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,8 +28,8 @@ module.exports = function(environment) {
 | 
			
		|||
      authorizationPrefix: 'Bearer ',
 | 
			
		||||
      authorizationHeaderName: 'Authorization',
 | 
			
		||||
      refreshAccessTokens: true,
 | 
			
		||||
      timeFactor: 1000,
 | 
			
		||||
      refreshLeeway: 300,
 | 
			
		||||
      timeFactor: 1000, // 1000 ms/s; JWT returned in unix time seconds
 | 
			
		||||
      refreshLeeway: 1800, // (60 s/min) * (30 min) = 1800 s
 | 
			
		||||
    },
 | 
			
		||||
    contentSecurityPolicy: {
 | 
			
		||||
      'default-src': "'none'",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue