mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
feat: switched from worker API to fs based
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user