test update json
This commit is contained in:
		| @@ -53,7 +53,6 @@ export class OAuthEndpointHandler { | ||||
|               } | ||||
|             }); | ||||
|           } catch (error) { | ||||
|             console.error('Failed to generate JWKS:', error); | ||||
|             return new Response(JSON.stringify({ error: 'Failed to generate JWKS' }), { | ||||
|               status: 500, | ||||
|               headers: { 'Content-Type': 'application/json' } | ||||
| @@ -62,7 +61,6 @@ export class OAuthEndpointHandler { | ||||
|         } | ||||
|       } catch (e) { | ||||
|         // If URL parsing fails, pass through to original fetch | ||||
|         console.debug('URL parsing failed, passing through:', e); | ||||
|       } | ||||
|        | ||||
|       // Pass through all other requests | ||||
| @@ -136,6 +134,5 @@ export function registerOAuthServiceWorker() { | ||||
|     const blob = new Blob([swCode], { type: 'application/javascript' }); | ||||
|     const swUrl = URL.createObjectURL(blob); | ||||
|      | ||||
|     navigator.serviceWorker.register(swUrl).catch(console.error); | ||||
|   } | ||||
| } | ||||
| @@ -37,7 +37,6 @@ export class OAuthKeyManager { | ||||
|         this.keyPair = await this.importKeyPair(keyData); | ||||
|         return this.keyPair; | ||||
|       } catch (error) { | ||||
|         console.warn('Failed to load stored key, generating new one:', error); | ||||
|         localStorage.removeItem('oauth_private_key'); | ||||
|       } | ||||
|     } | ||||
| @@ -115,7 +114,6 @@ export class OAuthKeyManager { | ||||
|       const privateKey = await window.crypto.subtle.exportKey('jwk', keyPair.privateKey); | ||||
|       localStorage.setItem('oauth_private_key', JSON.stringify(privateKey)); | ||||
|     } catch (error) { | ||||
|       console.error('Failed to store private key:', error); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user