Runtime | Has Support |
---|---|
Node.js | ✅ |
Cloudflare | ✅ |
npm install remix-auth-lichess
import { LichessStrategy } from 'remix-auth-lichess'
authenticator.use(
new LichessStrategy(
{
clientID: 'arbitrary-unique-id',
callbackURL: 'http://127.0.0.1:3000/auth/lichess/callback',
},
async function ({
accessToken,
refreshToken,
extraParams,
profile,
context,
request,
}) {
return await User.findOrCreate({ lichessId: profile.id })
}
)
)