@ccw-api/api
    Preparing search index...

    Variable ssoConst

    sso: {
        createSmsCaptcha: (
            recipient: string,
            scene?: "loginbyPhone",
            countryCode?: string,
            ruleCode?: "ccw_sms",
            captcha?: CaptchaPayload,
        ) => Promise<Res>;
        getOauthToken: (code: string) => Promise<Res<Extra>>;
        loginByPassword: (
            loginKey: string,
            password: string,
            reqExtra?: ReqExtra,
        ) => Promise<Res<Extra>>;
        loginByPhone: (
            phone: string,
            code: string,
            reqExtra?: ReqExtra,
            countryCode?: string,
            ruleCode?: "ccw_sms",
            scene?: "loginbyPhone",
        ) => Promise<Res<Extra>>;
        logout: () => Promise<null>;
        logoutBySession: (sessionId: number) => Promise<boolean>;
        oauthAuthorize: (state: string) => Promise<string>;
        touchSession: (token?: string) => Promise<TouchSessionSuccess>;
    } = ...

    Type Declaration

    • createSmsCaptcha: (
          recipient: string,
          scene?: "loginbyPhone",
          countryCode?: string,
          ruleCode?: "ccw_sms",
          captcha?: CaptchaPayload,
      ) => Promise<Res>
    • getOauthToken: (code: string) => Promise<Res<Extra>>
    • loginByPassword: (loginKey: string, password: string, reqExtra?: ReqExtra) => Promise<Res<Extra>>
    • loginByPhone: (
          phone: string,
          code: string,
          reqExtra?: ReqExtra,
          countryCode?: string,
          ruleCode?: "ccw_sms",
          scene?: "loginbyPhone",
      ) => Promise<Res<Extra>>
    • logout: () => Promise<null>
    • logoutBySession: (sessionId: number) => Promise<boolean>
    • oauthAuthorize: (state: string) => Promise<string>
    • touchSession: (token?: string) => Promise<TouchSessionSuccess>