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 Ember from 'ember';
 | 
				
			||||||
import JwtTokenAuthenticator from 'simple-auth-token/authenticators/jwt';
 | 
					import JwtTokenAuthenticator from 'simple-auth-token/authenticators/jwt';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,8 +28,8 @@ module.exports = function(environment) {
 | 
				
			||||||
      authorizationPrefix: 'Bearer ',
 | 
					      authorizationPrefix: 'Bearer ',
 | 
				
			||||||
      authorizationHeaderName: 'Authorization',
 | 
					      authorizationHeaderName: 'Authorization',
 | 
				
			||||||
      refreshAccessTokens: true,
 | 
					      refreshAccessTokens: true,
 | 
				
			||||||
      timeFactor: 1000,
 | 
					      timeFactor: 1000, // 1000 ms/s; JWT returned in unix time seconds
 | 
				
			||||||
      refreshLeeway: 300,
 | 
					      refreshLeeway: 1800, // (60 s/min) * (30 min) = 1800 s
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    contentSecurityPolicy: {
 | 
					    contentSecurityPolicy: {
 | 
				
			||||||
      'default-src': "'none'",
 | 
					      'default-src': "'none'",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue