Plasmic NextAuth Starter

R
Renaudil y a 2 jours
0

Description

A Plasmic-based Next.js template that integrates with Auth.js to enable authentication using Google.

npx boilerapp plasmic-nextauth-starter

文档

Plasmic example: authentication using next-auth

This is a demo of how you can connect Plasmic with next-auth (recently renamed to auth.js) to implement authentication.

Deploy with Vercel

Demo link - https://plasmic-next-auth-example.vercel.app/

Project - https://studio.plasmic.app/projects/21yfH8a5FQ3G5YYAEZCSx

Getting Started

  1. Hit the Deploy with Vercel, that should create a separate repo for you

  2. Configure the plasmic-init to use use project id and public api token

  3. Run npx auth secret to generate a secret for next-auth

  4. Get the API keys from google to setup the Google OAuth.

  5. Run yarn to install dependencies

  6. Run the development server: yarn dev

  7. Open your browser to see the result at http://localhost:3000

Learn More

With Plasmic, you can enable non-developers on your team to publish pages and content into your website or app.

To learn more about Plasmic, take a look at the following resources:

You can check out the Plasmic GitHub repository - your feedback and contributions are welcome!

Note: This Next.js project was bootstrapped with create-plasmic-app.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。