0.0.13 • Published 7 years ago

sf_linh v0.0.13

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

sf_authentication_client

React component, pure function

Install

Install with Npm

$ npm install sf_authentication_client 

Versions

Current Version

1.0.4

Usage

Import pakage

import Auth from 'sf_authentication_client'

Feature in this version

***Using as components react

  • Login form:
	<Auth.Login_Form 
	submitUrl = "@link_api_login"
	callbackUrl = "http://link" 
	 />
  • Signup form:
	<Auth.Signup_Form 
	submitUrl = "link_api_login"
	callbackUrl = "link" 
	 />

***Using js function

  • Set token was saved in localStorage to header in request for authenticaticate resquest on server
	var token = localStorage.getItem("token_auth");
	Auth.setAuthorizationToken(token);

Note: 'token_auth' is Item's name in localStorage where token was saved

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago