method Context.getDocumentLoader Context.getDocumentLoader(identity: { identifier: string; } | { username: string; } | { handle: string; }): Promise<DocumentLoader> Gets an authenticated DocumentLoader for the given identity. Note that an authenticated document loader intentionally does not cache the fetched documents. Parameters identity: { identifier: string; } | { username: string; } | { handle: string; } The identity to get the document loader for. The actor's identifier or username. Return Type Promise<DocumentLoader> The authenticated document loader. Throws Error If the identity is not valid. TypeError If the key is invalid or unsupported.