update svelte 5

This commit is contained in:
titusvermesan
2024-12-11 15:36:09 +01:00
parent b676563294
commit 583a66e57f
3 changed files with 11 additions and 10 deletions

View File

@@ -25,8 +25,8 @@
<textarea>{$token}</textarea>
<span>Payload</span>
<textarea>{JSON.stringify($payload)}</textarea>
<button on:click={onSendClick}>send</button>
<button on:click={onReadClick}>read</button>
<button onclick={onSendClick}>send</button>
<button onclick={onReadClick}>read</button>
</div>
</div>
<style>

View File

@@ -9,6 +9,6 @@ export function GET({ request }) {
const decoded = verify(jwt, 'shhhhh');
return json(decoded);
} catch (err) {
throw error(404, { message: err.message });
error(404, { message: err.message });
}
}