Skip to content

Alexandre-Herve/remix-auth-lichess

Repository files navigation

LichessStrategy

❌ Not ready

Lichess OAuth requires PKCE, which is not implemented there. See sergiodxa/remix-auth-oauth2#24

Supported runtimes

Runtime Has Support
Node.js
Cloudflare

How to use

Installation

npm install remix-auth-lichess

Usage

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 })
    }
  )
)

About

A Lichess strategy for Remix Auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published