Skip to content
Permalink
Browse files

first commit

  • Loading branch information...
j0lv3r4
j0lv3r4 committed Jan 4, 2019
0 parents commit c23cbd9e53a8014adbae7ff4013f5049e1dca9a9
Showing with 11,264 additions and 0 deletions.
  1. +149 −0 .gitignore
  2. +3 −0 .npmignore
  3. +5 −0 .prettierrc
  4. +3 −0 .vscode/settings.json
  5. +36 −0 README.md
  6. +2,837 −0 dist/next-authentication.js
  7. +2,827 −0 dist/next-authentication.mjs
  8. +2,840 −0 dist/next-authentication.umd.js
  9. +2,417 −0 package-lock.json
  10. +40 −0 package.json
  11. +35 −0 rollup.config.js
  12. +3 −0 src/.babelrc
  13. +69 −0 src/index.js
@@ -0,0 +1,149 @@
#### joe made this: http://goel.io/joe

#### linux ####
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*


#### macos ####
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


#### node ####
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless


#### vim ####
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~


#### visualstudiocode ####
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
@@ -0,0 +1,3 @@
rollup.config.js
src
package-lock.json
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2
}
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
@@ -0,0 +1,36 @@
# Next Authentication

`next-authorization` is an authentication & authorization library for the Next framework that provides user session management.

It handles logging in, logging out and remembering your users' session.

## Features:

- Backend agnostic. You are in charge of how the user is validated in the backend
- Exposes `login` and `logout` helper functions
- Let you restrict pages to logged-in users using a HOC

## Installation

`next-authentication` is published to npm:

```
npm i next-authentication
```

## Usage

```
import withAuth, { login, logout } from 'next-authentication'
const about = (props) =>
<h1>Hello, World</h2>
```

## Example

```
```

## Project Status

0 comments on commit c23cbd9

Please sign in to comment.
You can’t perform that action at this time.