ProfileOptions: {
    afterRefetch?: AfterRefetch;
    refetch?: boolean;
}

Options to customize the profile handler.

Type declaration

  • Optional afterRefetch?: AfterRefetch

    Like AfterCallback and AfterRefresh when a session is created, you can use this function to validate or add/remove claims after the session is updated. Will only run if ProfileOptions.refetch is true.

  • Optional refetch?: boolean

    If set to true this will refetch the user profile information from /userinfo and save it to the session.