16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Auth Client Helper
 | 
						|
 | 
						|
a module to make logging in to servers using the auth-server-helper easier
 | 
						|
 | 
						|
## Usage
 | 
						|
 | 
						|
```js
 | 
						|
const client = require('@scode/auth-client-helper');
 | 
						|
 | 
						|
// if using in the browser, will send a request to the current host
 | 
						|
const session_id = client.login('user','passw');
 | 
						|
 | 
						|
// specify a host manually
 | 
						|
const session_id = client.login('user','passw','https://example.com');
 | 
						|
```
 |