@monsenso/auth-api-next

JavaScript and TypeScript client for Monsenso's Auth service.

Usage no npm install needed!

<script type="module">
  import monsensoAuthApiNext from 'https://cdn.skypack.dev/@monsenso/auth-api-next';
</script>

README

@monsenso/auth-api

JavaScript and TypeScript client for Monsenso's Auth service.

Using the client

  • Provide the base url of the DataService the client shall target, e.g.:
    import { AuthModuleApi, BASE_URL } from '@monsenso/auth-api'
    
    @NgModule({
        imports: [
          AuthApiModule
        ],
        providers: [
            { provide: BASE_URL, useValue: 'https://auth.dev.monsenso.com' }
        ]
    })
    export class MyModule { ... }
    
  • The AuthApi class contains a function for each operation supported by the AuthService.

Generating the client

cd client
yarn
yarn generate