Variable authApiConst

authApi: {
    getUserInfoByToken: (token: string) => Promise<any>;
    getUserInfoByUserid: (token: string, id: string) => Promise<any>;
    handleMicrosoftCallback: (code: string) => Promise<any>;
    initiateMicrosoftLogin: () => Promise<any>;
    postLogin: (inputs: LoginInputs) => Promise<any>;
    postUserFeedback: (
        inputs: { text: string; topic: string; userId: number },
        token: string,
    ) => Promise<any>;
    updateGdprStatus: (userid: number, token: string) => Promise<any>;
} = ...

Type declaration

  • getUserInfoByToken: (token: string) => Promise<any>
  • getUserInfoByUserid: (token: string, id: string) => Promise<any>
  • handleMicrosoftCallback: (code: string) => Promise<any>
  • initiateMicrosoftLogin: () => Promise<any>
  • postLogin: (inputs: LoginInputs) => Promise<any>
  • postUserFeedback: (
        inputs: { text: string; topic: string; userId: number },
        token: string,
    ) => Promise<any>
  • updateGdprStatus: (userid: number, token: string) => Promise<any>