This approach allows an external application to pass the Enerflo user credentials directly to Enerflo.
If the credentials are valid, Enerflo authenticates the user.
This process is facilitated with two steps:
- Supply the user credentials (email and password) to
/api/auth/login
(see reference documentation here)- When successful, this will return an
access_token
- When successful, this will return an
- Utilize the
access_token
value in a call to/api/auth/user
(see reference documentation here)