feat: switched from worker API to fs based

This commit is contained in:
Morten Olsen
2024-01-12 14:14:40 +01:00
parent 6d8e5bf955
commit 59d6faaafc
38 changed files with 458 additions and 67 deletions

View File

@@ -14,7 +14,8 @@ const createContext = async ({ runtime }: ContextOptions) => {
if (!authorization) {
throw new Error('No authorization header');
}
await auth.validateToken(authorization);
const [, token] = authorization.split(' ');
await auth.validateToken(token);
return {
runtime,
};