Nextcloud Provider
리소스
설정
콜백 URL
https://example.com/api/auth/callback/nextcloud
환경 변수
AUTH_NEXTCLOUD_ID
AUTH_NEXTCLOUD_SECRET
AUTH_NEXTCLOUD_ISSUER
설정
import NextAuth from "next-auth"
import Nextcloud from "next-auth/providers/nextcloud"
const response = await NextAuth({
providers: [
Nextcloud({
clientId: process.env.AUTH_NEXTCLOUD_ID,
clientSecret: process.env.AUTH_NEXTCLOUD_SECRET,
issuer: process.env.AUTH_NEXTCLOUD_ISSUER,
}),
],
})