Function usernameToEmail

  • Get email from workspace username This method is particularly useful for apps that require the email address of the viewer. Indeed, in the viewer context, WM_USERNAME is set to the username of the viewer but WM_EMAIL is set to the email of the creator of the app.

    Parameters

    • username: string

    Returns Promise<string>

    email address