https://github.com/vaheqelyan/next-auth
Login / Authentication example on Next.js/React/Mobx
https://github.com/vaheqelyan/next-auth
auth authentication express mobx mobx-react nextjs now react session
Last synced: about 1 year ago
JSON representation
Login / Authentication example on Next.js/React/Mobx
- Host: GitHub
- URL: https://github.com/vaheqelyan/next-auth
- Owner: vaheqelyan
- Created: 2017-11-05T13:39:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-05T16:22:56.000Z (over 8 years ago)
- Last Synced: 2025-04-17T07:17:17.560Z (about 1 year ago)
- Topics: auth, authentication, express, mobx, mobx-react, nextjs, now, react, session
- Language: JavaScript
- Homepage: https://next-auth.now.sh/
- Size: 121 KB
- Stars: 34
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# next-auth

### Getting started
demo at https://next-auth.now.sh/
Clone the repo
```code
git clone https://github.com/vaheqelyan/next-auth.git
```
Then create a file ```.env``` file.
```code
SECRET=
```
Then create a file `env-config.js`
```javascript
module.exports = {
"process.env.GOOGLE_CLIENT_ID": ""
};
```
### Install the dependencies
```code
yarn
```
```code
npm install
```
### Running locally in development mode
```code
npm run dev
```
### Building and deploying in production
```code
npm build
npm start
```
### Deploying to the cloud with now.sh
```code
npm run public
```