You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the example code for Local Strategy, the import for LocalStrategy is missing or not found using import { Authenticator, LocalStrategy } from "remix-auth";
LocalStrategy change to FormStrategy with 'remix-auth-form'
import { FormStrategy } from "remix-auth-form";
// Tell the Authenticator to use the form strategy
authenticator.use(
new FormStrategy(async ({ form }) => {
let email = form.get("email");
let password = form.get("password");
let user = await login(email, password);
// the type of this user must match the type you pass to the Authenticator
// the strategy will automatically inherit the type if you instantiate
// directly inside the `use` method
return user;
}),
// each strategy has a name and can be changed to use another one
// same strategy multiple times, especially useful for the OAuth2 strategy.
"user-pass"
);
Describe the bug
Following the example code for Local Strategy, the import for LocalStrategy is missing or not found using
import { Authenticator, LocalStrategy } from "remix-auth";
remix-auth/examples/local/app/services/auth.ts
Line 1 in 68d3cf6
Your Example Website or App
examples/local
Steps to Reproduce the Bug or Issue
Install npm packages and try to run the app
Expected behavior
Compiler should not complain about missing import
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: