• Returns credentials for a user. Used in situations where you need to ensure the user is properly authenticated for a particular special functionality. Note: For security, the tokens should not be persisted in client-side local storage, session storage, or cookies.

    Parameters

    • userId: string

    Returns Promise<Viewer.Credentials>