@honua/sdk-js
    Preparing search index...

    Interface IdentityManagerOAuth2Engine

    A real OAuth2 engine backing a server in IdentityManagerCompatStore. Any built-in provider from @honua/sdk-js/auth (e.g. oauth2(...)) satisfies this: it is a HonuaAuthProvider with an optional interactive signIn(). Binding one makes getCredential(url) drive the actual PKCE / refresh flow (obtain a token, register it, return it) instead of only reading pre-seeded tokens — so migrated IdentityManager.registerOAuthInfos(...) + IdentityManager.getCredential(...) code paths work end to end.

    interface IdentityManagerOAuth2Engine {
        getCredentials(
            context: HonuaAuthProviderContext,
        ): HonuaAuthProviderResult;
        revokeCredentials?(
            credentials: HonuaAuthCredentials,
            context: HonuaAuthRevocationContext,
        ): void | Promise<void>;
        signIn?(): Promise<unknown>;
    }

    Hierarchy (View Summary)

    Index

    Methods