<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@workgrid/micro-app](./micro-app.md) &gt; [MicroApp](./micro-app.microapp.md) &gt; [getToken](./micro-app.microapp.gettoken.md)

## MicroApp.getToken() method

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
> 

Retrieve a token to validate the user in your API. The token will be a JWT that includes `email`<!-- -->, `workgrid_space_id` and `workgrid_tenant_id`<!-- -->.

<b>Signature:</b>

```typescript
getToken(): Promise<string>;
```
<b>Returns:</b>

Promise&lt;string&gt;

