Overview

This article describes how to authenticate with GakuNin RDM using Nuxt 3 and @sidebase/nuxt-auth.

Demo App

https://nuxt-rdm.vercel.app/

Repository

https://github.com/nakamura196/nuxt-rdm

Notes

Initially, the following warning was displayed.

AUTH_NO_ORIGIN: No origin - this is an error in production, see https://sidebase.io/nuxt-auth/resources/errors. You can ignore this during development

Therefore, based on the following reference:

https://auth.sidebase.io/resources/error-reference

I configured it as follows, which resulted in an error.

a}u,tbha:se{URL:process.env.NEXTAUTH_URL,

The cause was that I was using an rc version of the library.

"@sidebase/nuxt-auth":"^0.10.0-rc.2",

By changing the version as follows, the error was resolved.

"@sidebase/nuxt-auth":"^0.9.4"

I hope this helps others experiencing the same issue.

Summary

There may be aspects that could be improved, but I hope this serves as a helpful reference.