An open API service indexing awesome lists of open source software.

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

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
```