mirror of
				https://github.com/Dan6erbond/sk-auth.git
				synced 2025-10-26 10:22:56 +01:00 
			
		
		
		
	cookie parsing from RequestEvent
This commit is contained in:
		
							parent
							
								
									143a6e3c4a
								
							
						
					
					
						commit
						d01a56f7fd
					
				
							
								
								
									
										8387
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8387
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -46,11 +46,12 @@ export class Auth {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async getToken(headers: any) {
 | 
			
		||||
    if (!headers.cookie) {
 | 
			
		||||
    
 | 
			
		||||
    if (!headers.get('cookie')) {
 | 
			
		||||
      return null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const cookies = cookie.parse(headers.cookie);
 | 
			
		||||
    const cookies = cookie.parse(headers.get('cookie'));
 | 
			
		||||
 | 
			
		||||
    if (!cookies.svelteauthjwt) {
 | 
			
		||||
      return null;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user