docs(test): cross-reference #8897 on cookie-strategy OAuth state CSRF test (#9334)

This commit is contained in:
skalkii
2026-04-24 12:55:18 +05:30
committed by GitHub
parent 75524d61b1
commit ca57b001b9

View File

@@ -1040,6 +1040,9 @@ describe("oauth2", async () => {
expect(session.data?.user.name).toBe("OAuth2 Cookie State");
});
/**
* @see https://github.com/better-auth/better-auth/issues/8897
*/
it("should reject cookie-backed OAuth when callback state does not match the issued state", async () => {
const { customFetchImpl, cookieSetter } = await getTestInstance({
plugins: [