# sf_authentication_client

> Libary_SmartFun

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

## Install

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

## 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.2 |
| Published | 2017-03-15 |
| First published | 2017-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+28 in 2 direct dependencies) |
| Install scripts | no |
| Author | hdlinhit95 |
| Maintainers | hdlinhit95 |

## Links

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

## Dependencies (8)

- [axios](https://npm.io/package/axios.md) ^0.15.3
- [react](https://npm.io/package/react.md) ^15.4.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [react-dom](https://npm.io/package/react-dom.md) ^15.4.2
- [validator](https://npm.io/package/validator.md) ^6.2.1
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [react-router](https://npm.io/package/react-router.md) ^3.0.2
- [webpack-init](https://npm.io/package/webpack-init.md) ^0.1.2

## Recent versions

- 1.1.2 (latest) — 2017-03-15
- 1.1.1 — 2017-03-14
- 1.1.0 — 2017-03-14
- 1.0.10 — 2017-03-14
- 1.0.9 — 2017-03-14
- 1.0.8 — 2017-03-14
- 1.0.7 — 2017-03-14
- 1.0.6 — 2017-03-14
- 1.0.5 — 2017-03-14
- 1.0.4 — 2017-03-14
- 1.0.3 — 2017-03-14
- 1.0.2 — 2017-03-14
- 1.0.1 — 2017-03-14

## README

sf_authentication_client
==============
React component, pure function


Install
==============
#### Install with Npm
```sh
$ npm install sf_authentication_client 
```

Versions
==============
Current Version
```sh
1.1.2
```


Usage
==============
#### Import pakage
```sh
import Auth from 'sf_authentication_client'
```

Feature in this version

***Using as `components react`
-  Login form: 

```sh
	<Auth.Login_Form 
	submitUrl = "@link_api_login"
	callbackUrl = "http://link" 
	 />
```

-  Signup form: 

```sh
	<Auth.Signup_Form 
	submitUrl = "link_api_login"
	callbackUrl = "http://link" 
	 />
```

***Using js function
- Set `token was saved` in localStorage to `request's header` for authenticaticate resquest on server

```sh
	Auth.setAuthorizationToken();
```

- Get Profile{id, username}

```sh
	Auth.getProfile();
```

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