generated from sergiodxa/remix-auth-strategy-template
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethink WebAuthnStrategy.generateOptions
#14
Comments
Apparently this might be caused by vercel/remix#109 Edit: nevermind, seems unrelated |
It's also not playing well with the import { unstable_defineLoader as defineLoader } from "@remix-run/node";
export const loader = defineLoader(async ({ request }) => {
const user = await getUser(request);
return webAuthnStrategy.generateOptions(
request,
authSessionStorage,
user
);
});
|
alexanderson1993
added a commit
that referenced
this issue
May 24, 2024
…ethink `WebAuthnStrategy.generateOptions` #14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remix is planning to release Single Fetch functionality soon. It changes how the loader/action return values work, which makes
remix-auth-webauthn
incompatible with the current state of things.Perhaps this is only temporary bug, but I'm encountering a problem with this code:
I'm suspecting this is because
webAuthnStrategy.generateOptions
returnsjson
response, although it should still technically work with the Single Fetch API.My current workaround is as following:
Which looks kinda crazy, but works :D
The text was updated successfully, but these errors were encountered: