13 lines
395 B
Vue
13 lines
395 B
Vue
<template>
|
|
<div>
|
|
<h1>You can see the state if you hit this with an <code>Authorization</code> header</h1>
|
|
<pre>Authorization: {{ header }}</pre>
|
|
<pre>{{ verifiedState }}</pre>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const verifiedState = useState(() => ({ unkey: useRequestEvent()?.context?.unkey }))
|
|
const header = useState(() => useRequestEvent()?.headers?.authorization)
|
|
</script>
|