# sf_authentication_server

> Smartfun_Libary

Latest version **1.1.1** (published 2017-03-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install sf_authentication_server
pnpm add sf_authentication_server
yarn add sf_authentication_server
bun add sf_authentication_server
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-03-15 |
| First published | 2017-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 29 |
| Known vulnerabilities | 0 (+41 in 6 direct dependencies) |
| Install scripts | no |
| Author | hdlinhit95 |
| Maintainers | hdlinhit95 |

## Links

- npm: https://www.npmjs.com/package/sf_authentication_server
- npm.io page: https://npm.io/package/sf_authentication_server

## Dependencies (29)

- [axios](https://npm.io/package/axios.md) ^0.15.3
- [mysql](https://npm.io/package/mysql.md) ^2.13.0
- [react](https://npm.io/package/react.md) ^15.4.2
- [redux](https://npm.io/package/redux.md) ^3.6.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [express](https://npm.io/package/express.md) ^4.14.1
- [graphql](https://npm.io/package/graphql.md) ^0.9.1
- [bcryptjs](https://npm.io/package/bcryptjs.md) ^2.4.3
- [passport](https://npm.io/package/passport.md) ^0.3.2
- [node-sass](https://npm.io/package/node-sass.md) ^4.5.0
- [react-dom](https://npm.io/package/react-dom.md) ^15.4.2
- [sequelize](https://npm.io/package/sequelize.md) ^3.30.1
- [validator](https://npm.io/package/validator.md) ^6.2.1
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [jwt-decode](https://npm.io/package/jwt-decode.md) ^2.1.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.16.1
- [react-redux](https://npm.io/package/react-redux.md) ^5.0.2
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^2.2.0
- [graphql-date](https://npm.io/package/graphql-date.md) ^1.0.3
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^7.3.0
- [passport-jwt](https://npm.io/package/passport-jwt.md) ^2.2.1
- [react-router](https://npm.io/package/react-router.md) ^3.0.2
- [redux-logger](https://npm.io/package/redux-logger.md) ^2.8.1
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [express-graphql](https://npm.io/package/express-graphql.md) ^0.6.3
- [express-session](https://npm.io/package/express-session.md) ^1.15.1
- [passport-facebook](https://npm.io/package/passport-facebook.md) ^2.1.1
- [sf_authentication_client](https://npm.io/package/sf_authentication_client.md) ^1.1.1

## Recent versions

- 1.1.1 (latest) — 2017-03-15
- 1.0.7 — 2017-03-15
- 1.0.6 — 2017-03-15
- 1.0.5 — 2017-03-15
- 1.0.4 — 2017-03-15
- 0.0.4 — 2017-03-14
- 0.0.3 — 2017-03-14

## README

sf_authentication_server
==============
React component, pure function


Install
==============
#### Install with Npm
```sh
$ npm install sf_authentication_server
```

Versions
==============
Current Version
```sh
1.0.6
```


Usage
==============
#### Import pakage
```sh
var Express = require('express');
var app = Express();
var Auth require('sf_authentication_server');
var config_db= {
	username: 'localhost',
    password: '****',
    database: 'authentication',
    host: '0.0.0.0',
    dialect: 'mysql',
    define: {
        timestamps: false
    },
    logging: false
};
var table_db = "autho_user";
Auth(app,config_db,table_db);


```

Feature in this version
==============

#### Create two api for authentication
- 'Login'
```sh
	POST: '/api/login'
```

- 'Signup'
```sh
	POST: '/api/signup'
```


Note: service'll return a object:
result = {
	isSuccess,
	token,
	type
}

- 'GetProfile'
```sh
	GET: '/api/getProfileByToken'
```

---
_Source: https://npm.io/package/sf_authentication_server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
