···11-# Logs
22-logs
33-*.log
44-npm-debug.log*
55-yarn-debug.log*
66-yarn-error.log*
77-lerna-debug.log*
88-.pnpm-debug.log*
99-1010-# Diagnostic reports (https://nodejs.org/api/report.html)
1111-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1212-1313-# Runtime data
1414-pids
1515-*.pid
1616-*.seed
1717-*.pid.lock
1818-1919-# Directory for instrumented libs generated by jscoverage/JSCover
2020-lib-cov
2121-2222-# Coverage directory used by tools like istanbul
2323-coverage
2424-*.lcov
2525-2626-# nyc test coverage
2727-.nyc_output
2828-2929-# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
3030-.grunt
3131-3232-# Bower dependency directory (https://bower.io/)
3333-bower_components
3434-3535-# node-waf configuration
3636-.lock-wscript
3737-3838-# Compiled binary addons (https://nodejs.org/api/addons.html)
3939-build/Release
4040-4141-# Dependency directories
4242-node_modules/
4343-jspm_packages/
4444-4545-# Snowpack dependency directory (https://snowpack.dev/)
4646-web_modules/
4747-4848-# TypeScript cache
4949-*.tsbuildinfo
5050-5151-# Optional npm cache directory
5252-.npm
5353-5454-# Optional eslint cache
5555-.eslintcache
5656-5757-# Optional stylelint cache
5858-.stylelintcache
5959-6060-# Microbundle cache
6161-.rpt2_cache/
6262-.rts2_cache_cjs/
6363-.rts2_cache_es/
6464-.rts2_cache_umd/
6565-6666-# Optional REPL history
6767-.node_repl_history
6868-6969-# Output of 'npm pack'
7070-*.tgz
7171-7272-# Yarn Integrity file
7373-.yarn-integrity
7474-7575-# dotenv environment variable files
11+node_modules
22+*.log*
33+.nuxt
44+.nitro
55+.cache
66+.output
767.env
7777-.env.development.local
7878-.env.test.local
7979-.env.production.local
8080-.env.local
8181-8282-# parcel-bundler cache (https://parceljs.org/)
8383-.cache
8484-.parcel-cache
8585-8686-# Next.js build output
8787-.next
8888-out
8989-9090-# Nuxt.js build / generate output
9191-.nuxt
928dist
9393-9494-# Gatsby files
9595-.cache/
9696-# Comment in the public line in if your project uses Gatsby and not Next.js
9797-# https://nextjs.org/blog/next-9-1#public-directory-support
9898-# public
9999-100100-# vuepress build output
101101-.vuepress/dist
102102-103103-# vuepress v2.x temp and cache directory
104104-.temp
105105-.cache
106106-107107-# Serverless directories
108108-.serverless/
109109-110110-# FuseBox cache
111111-.fusebox/
112112-113113-# DynamoDB Local files
114114-.dynamodb/
115115-116116-# TernJS port file
117117-.tern-port
118118-119119-# Stores VSCode versions used for testing VSCode extensions
120120-.vscode-test
121121-122122-# yarn v2
123123-.yarn/cache
124124-.yarn/unplugged
125125-.yarn/build-state.yml
126126-.yarn/install-state.gz
127127-.pnp.*
+42-2
README.md
···11-# nuxt3_mongoose_demo
22- simple startup project with nuxt3 mongoose and github or discord sso
11+# Nuxt 3 Minimal Starter
22+33+Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
44+55+## Setup
66+77+Make sure to install the dependencies:
88+99+```bash
1010+# yarn
1111+yarn install
1212+1313+# npm
1414+npm install
1515+1616+# pnpm
1717+pnpm install --shamefully-hoist
1818+```
1919+2020+## Development Server
2121+2222+Start the development server on http://localhost:3000
2323+2424+```bash
2525+npm run dev
2626+```
2727+2828+## Production
2929+3030+Build the application for production:
3131+3232+```bash
3333+npm run build
3434+```
3535+3636+Locally preview production build:
3737+3838+```bash
3939+npm run preview
4040+```
4141+4242+Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
···11+import { NuxtAuthHandler } from '#auth'
22+import GithubProvider from 'next-auth/providers/github'
33+import DiscordProvider from 'next-auth/providers/discord'
44+export default NuxtAuthHandler({
55+ secret: 'MonSecret',
66+ providers: [
77+ // @ts-expect-error You need to use .default here for it to work during SSR. May be fixed via Vite at some point
88+ GithubProvider.default({
99+ clientId: 'enter-your-client-id-here',
1010+ clientSecret: 'enter-your-client-secret-here'
1111+ }),
1212+1313+ // @ts-expect-error You need to use .default here for it to work during SSR. May be fixed via Vite at some point
1414+ DiscordProvider.default({
1515+ clientId: 'enter-your-client-id-here',
1616+ clientSecret: 'enter-your-client-secret-here'
1717+ }),
1818+1919+ ]
2020+})