次の方法で共有


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

Properties

failureCallback
successCallback

Property Details

failureCallback

Warning

This API is now deprecated.

As of TeamsJS v2.0.0, this property has been deprecated in favor of a Promise-based pattern.

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 a Promise-based pattern.

A function that is called if the request succeeds.

successCallback?: (result: string) => void

Property Value

(result: string) => void