SolidAuthConfig type error

I'm setting up auth with NextAuth for the first time and ran into a type error when following the example on the solid start tutorial page of next auth.
import { SolidAuth, type SolidAuthConfig } from "@auth/solid-start";
import GitHub from "@auth/core/providers/github";

export const authOpts: SolidAuthConfig = {
providers: [
GitHub({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
}),
],
debug: false,
};

export const { GET, POST } = SolidAuth(authOpts);
import { SolidAuth, type SolidAuthConfig } from "@auth/solid-start";
import GitHub from "@auth/core/providers/github";

export const authOpts: SolidAuthConfig = {
providers: [
GitHub({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
}),
],
debug: false,
};

export const { GET, POST } = SolidAuth(authOpts);
@OrJDev do you know what's up here?
2 Replies
OrJDev
OrJDev2y ago
Ye the types are messed up in the official authjs adapters Add a @ts-expect-error
OrJDev
OrJDev2y ago
Or use
@solid-auth/base
@solid-auth/base
which is the latest version of it and has no types issue https://github.com/OrJDev/solid-auth
GitHub
GitHub - OrJDev/solid-auth: SolidStart Adapter For AuthJS
SolidStart Adapter For AuthJS. Contribute to OrJDev/solid-auth development by creating an account on GitHub.
Want results from more Discord servers?
Add your server