1.0.0-alpha.8 • Published 5 years ago
@shingo/auth-api-client v1.0.0-alpha.8
@shingo/auth-api-client
Client library for @shingo/auth-api-server
Usage
- Install the library as a dependency
npm i --save-dev @shingo/auth-api-client
- Import the
AuthClient
class from the index and instantiate with the server address:
import { AuthClient } from '@shingo/shingo-auth-api'
const client = new AuthClient('api.shingo.org:1337')
client
.login({ email: 'blah@blah', password: 'asdf', services: 'some-service' })
.then(res => {
// do something
})
1.0.0-alpha.8
5 years ago
1.0.0-alpha.7
6 years ago
1.0.0-alpha.6
6 years ago
1.0.0-alpha.5
6 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
6 years ago
1.0.0-alpha.0
6 years ago