Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6153e02852 |
@@ -134,10 +134,7 @@ function buildApp(
|
|||||||
) {
|
) {
|
||||||
const app = new Hono<AppEnv>();
|
const app = new Hono<AppEnv>();
|
||||||
app.use("*", async (c, next) => {
|
app.use("*", async (c, next) => {
|
||||||
c.set("jwtPayload", {
|
c.set("jwtPayload", { sub: userLookupResult?.id ?? staffLookupResult?.userId ?? "unknown-sub" });
|
||||||
sub: userLookupResult?.id ?? staffLookupResult?.userId ?? "unknown-sub",
|
|
||||||
email: userLookupResult?.email,
|
|
||||||
});
|
|
||||||
await next();
|
await next();
|
||||||
});
|
});
|
||||||
app.use("*", middleware);
|
app.use("*", middleware);
|
||||||
|
|||||||
Reference in New Issue
Block a user