LegacyCallBacks interface

Warning

This API is now deprecated.

As of TeamsJS v2.0.0, this interface has been deprecated in favor of leveraging the Promise returned from authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string>

Used in AuthenticateParameters and AuthTokenRequest

Property Details

failureCallback

Warning

This API is now deprecated.

As of TeamsJS v2.0.0, this property has been deprecated in favor of the Promise returned from authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string> and authentication.getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise<string>, which rejects with the reason for the failure.

A function that is called if the request fails, with the reason for the failure.

failureCallback?: (reason: string) => void

Property Value

(reason: string) => void

successCallback

Warning

This API is now deprecated.

As of TeamsJS v2.0.0, this property has been deprecated in favor of the Promise returned from authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string> and authentication.getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise<string>.

A function that is called if the request succeeds.

successCallback?: (result: string) => void

Property Value

(result: string) => void