mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	chore(server): Add TODO
This commit is contained in:
		
							parent
							
								
									808c680184
								
							
						
					
					
						commit
						0683fa6b97
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,10 @@ module.exports = (server: http.Server) => {
 | 
			
		|||
 | 
			
		||||
	ws.on('request', async (request) => {
 | 
			
		||||
		const q = request.resourceURL.query as ParsedUrlQuery;
 | 
			
		||||
 | 
			
		||||
		// TODO: トークンが間違ってるなどしてauthenticateに失敗したら
 | 
			
		||||
		// コネクション切断するなりエラーメッセージ返すなりする
 | 
			
		||||
		// (現状はエラーがキャッチされておらずサーバーのログに流れて邪魔なので)
 | 
			
		||||
		const [user, app] = await authenticate(q.i as string);
 | 
			
		||||
 | 
			
		||||
		const connection = request.accept();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue