Frame security always returns verified = false #462
-
I am unable to get a valid import { Button, Frog } from "frog";
import { devtools } from "frog/dev";
import { neynar } from "frog/hubs";
import { handle } from "frog/next";
import { serveStatic } from "frog/serve-static";
const app = new Frog({
assetsPath: "/",
basePath: "/api",
hub: neynar({ apiKey: "HUB_KEY_DUMMY" }),
title: "XYS",
secret: "SOME_SECERT_FROM_ENV",
});
app.frame("/", (c) => {
const { buttonValue, status, verified, frameData } = c;
if (!verified) {
return c.res({
headers: { contentType: "image/png" },
image: invalidLogin(),
});
} else {
const { fid } = frameData || {};
.....
return c.res({
....
})
}
})
devtools(app, { serveStatic });
export const GET = handle(app);
export const POST = handle(app); I even tried it on real Warpcast, but still get a |
Beta Was this translation helpful? Give feedback.
Answered by
chilaraiSxt
Sep 3, 2024
Replies: 1 comment 1 reply
-
Seems like the frame validation and other stuffs doesn't work on the landing frame. Only after some action is taken, the next frame gets all the information. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chilaraiSxt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like the frame validation and other stuffs doesn't work on the landing frame. Only after some action is taken, the next frame gets all the information.