nexus. auth
            Source: src/
Methods
changePassword(params) → Promise containing AuthApiResponse
changes the password of a user
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse 
confirmSignUp(params) → Promise containing AuthApiResponse
confirms the sign up of a user
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse 
forgotPassword(params) → Promise containing AuthApiResponse
initiates a password reset
Parameters
| Name | Type | Optional | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse 
forgotPasswordSubmit(params) → Promise containing AuthApiResponse
resets a user's password
Parameters
| Name | Type | Optional | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse 
getCurrentSesssion() → Promise containing AuthApiResponse
returns an existing cognito session
- Returns
 - 
                  
Promise containing AuthApiResponse 
resendConfirmationCode(params) → Promise containing AuthApiResponse
re-requests the sign up code to be delivered to the users email
Parameters
| Name | Type | Optional | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse 
signIn(usernameOrEmail, password) → Promise containing AuthApiResponse
signs in a user
Parameters
| Name | Type | Optional | Description | 
|---|---|---|---|
| 
                         usernameOrEmail  | 
                      
                         string  | 
                      
                         
  | 
                      |
| 
                         password  | 
                      
                         string  | 
                      
                         
  | 
                      
- Returns
 - 
                  
Promise containing AuthApiResponse 
signOut([params]) → undefined
signs out a user by invalidating their access token; when the global flag is set, any access tokens on other machines are not refreshed anymore, i.e. they expire within one hour
Parameters
| Name | Type | Optional | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         Yes  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
undefined 
signUp(params) → Promise containing AuthApiResponse
signs up a user for the OSPIN web app
Parameters
| Name | Type | Optional | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                         params  | 
                      
                         Object  | 
                      
                         
  | 
                      
                         Values in  
  | 
                    
- Returns
 - 
                  
Promise containing AuthApiResponse