Skip to content

Elysia + Lucia-auth exmaple with Next.js, Expo.js, Turborepo

License

Notifications You must be signed in to change notification settings

koutyuke/Elysia_Lucia_Example

Repository files navigation

ElysiaJS + lucia-auth Example

This repository implements password login with lucia-auth in ElysiaJS and OAuth2.0 login for use with Next.js and Expo.

What's inside?

It was built by Turborepo and includes the following packages/apps/tools

  • apps/api: a ElysiaJS and lucia-auth v3 app
  • apps/web: a Next.js app
  • apps/mobile: a Expo app
  • tools/*: these are the project settings
  • packages/*: these are common components of the project

Installation

bun i

Start

// web
bun web dev

// mobile
bun mobile run:ios
bun mobile start

// api
bun api dev

Supported Authentication

  • Password + Email
  • OAuth2.0
    • Discord
    • Google
    • LINE
  • Password-Reset

Authenticate requests from the web using cookies, and from mobile using authorization-header

API Reference

Start api server

bun api dev

and access http://localhost:3001/swagger.

thanks

Without The Copenhagen Book, this repository would not be here.

About

Elysia + Lucia-auth exmaple with Next.js, Expo.js, Turborepo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published