Hi. So a few things:
- We only provide session management as of yet. Login is coming very soon.
- We have a frontend and backend SDK you need to integrate with. The code snippet you sent it for the frontend SDK.
- The backend SDK is the one that will take the 
apiKey
 and the 
host
 string.