/
authentication.LegacyCallBacks.yml
59 lines (53 loc) · 1.86 KB
/
authentication.LegacyCallBacks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
### YamlMime:TSType
name: LegacyCallBacks
uid: '@microsoft/teams-js.authentication.LegacyCallBacks'
package: '@microsoft/teams-js'
summary: ''
fullName: LegacyCallBacks
remarks: ''
isDeprecated: true
customDeprecatedMessage: >-
As of 2.0.0, this interface has been deprecated in favor of leveraging the
`Promise` returned from [authentication.authenticate(authenticateParameters:
AuthenticatePopUpParameters):
Promise\<string\>](xref:@microsoft/teams-js.authentication.authenticate_1)
-------------------------
Used in
[AuthenticateParameters](xref:@microsoft/teams-js.authentication.AuthenticateParameters)
and
[AuthTokenRequest](xref:@microsoft/teams-js.authentication.AuthTokenRequest)
type: interface
properties:
- name: failureCallback
uid: '@microsoft/teams-js.authentication.LegacyCallBacks.failureCallback'
package: '@microsoft/teams-js'
summary: ''
fullName: failureCallback
remarks: ''
isDeprecated: true
customDeprecatedMessage: >-
As of 2.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.
syntax:
content: 'failureCallback?: (reason: string) => void'
return:
description: ''
type: '(reason: string) => void'
- name: successCallback
uid: '@microsoft/teams-js.authentication.LegacyCallBacks.successCallback'
package: '@microsoft/teams-js'
summary: ''
fullName: successCallback
remarks: ''
isDeprecated: true
customDeprecatedMessage: >-
As of 2.0.0, this property has been deprecated in favor of a Promise-based
pattern.
A function that is called if the request succeeds.
syntax:
content: 'successCallback?: (result: string) => void'
return:
description: ''
type: '(result: string) => void'