-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.yml
265 lines (258 loc) · 9.07 KB
/
index.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
### YamlMime:TSPackage
uid: '@azure/msal-react'
name: '@azure/msal-react'
summary: ''
type: package
interfaces:
- '@azure/msal-react.IMsalContext'
typeAliases:
- '@azure/msal-react.MsalProviderProps'
- '@azure/msal-react.AuthenticatedTemplateProps'
- '@azure/msal-react.MsalAuthenticationProps'
- '@azure/msal-react.UnauthenticatedTemplateProps'
- '@azure/msal-react.WithMsalProps'
- '@azure/msal-react.MsalAuthenticationResult'
- '@azure/msal-react.AccountIdentifiers'
- '@azure/msal-react.FaaCFunction'
- '@azure/msal-react.SetComplement'
- '@azure/msal-react.SetDifference'
- '@azure/msal-react.Subtract'
functions:
- name: 'MsalProvider({ children: any, instance: any })'
uid: '@azure/msal-react.MsalProvider'
package: '@azure/msal-react'
summary: >-
MSAL context provider component. This must be rendered above any other
components that use MSAL.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function MsalProvider(__namedParameters: { children: any, instance: any
}): React.ReactElement
parameters:
- id: __namedParameters
type: '{ children: any, instance: any }'
description: ''
return:
description: ''
type: <xref uid="React.ReactElement" />
- name: >-
AuthenticatedTemplate({ children: any, homeAccountId: any, localAccountId:
any, username: any })
uid: '@azure/msal-react.AuthenticatedTemplate'
package: '@azure/msal-react'
summary: Renders child components if user is authenticated
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function AuthenticatedTemplate(__namedParameters: { children: any,
homeAccountId: any, localAccountId: any, username: any }):
React.ReactElement | null
parameters:
- id: __namedParameters
type: >-
{ children: any, homeAccountId: any, localAccountId: any, username:
any }
description: ''
return:
description: ''
type: <xref uid="React.ReactElement" /> | null
- name: >-
MsalAuthenticationTemplate({ ErrorComponent: any, LoadingComponent: any,
authenticationRequest: any, children: any, homeAccountId: any,
interactionType: any, localAccountId: any, username: any })
uid: '@azure/msal-react.MsalAuthenticationTemplate'
package: '@azure/msal-react'
summary: >-
Attempts to authenticate user if not already authenticated, then renders
child components
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function MsalAuthenticationTemplate(__namedParameters: { ErrorComponent:
any, LoadingComponent: any, authenticationRequest: any, children: any,
homeAccountId: any, interactionType: any, localAccountId: any, username:
any }): React.ReactElement | null
parameters:
- id: __namedParameters
type: >-
{ ErrorComponent: any, LoadingComponent: any, authenticationRequest:
any, children: any, homeAccountId: any, interactionType: any,
localAccountId: any, username: any }
description: ''
return:
description: ''
type: <xref uid="React.ReactElement" /> | null
- name: >-
UnauthenticatedTemplate({ children: any, homeAccountId: any,
localAccountId: any, username: any })
uid: '@azure/msal-react.UnauthenticatedTemplate'
package: '@azure/msal-react'
summary: Renders child components if user is unauthenticated
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function UnauthenticatedTemplate(__namedParameters: { children: any,
homeAccountId: any, localAccountId: any, username: any }):
React.ReactElement | null
parameters:
- id: __namedParameters
type: >-
{ children: any, homeAccountId: any, localAccountId: any, username:
any }
description: ''
return:
description: ''
type: <xref uid="React.ReactElement" /> | null
- name: useAccount(AccountIdentifiers)
uid: '@azure/msal-react.useAccount'
package: '@azure/msal-react'
summary: >-
Given 1 or more accountIdentifiers, returns the Account object if the user
is signed-in
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function useAccount(accountIdentifiers?: AccountIdentifiers):
AccountInfo | null
parameters:
- id: accountIdentifiers
type: <xref uid="@azure/msal-react.AccountIdentifiers" />
description: |+
return:
description: ''
type: AccountInfo | null
- name: useIsAuthenticated(AccountIdentifiers)
uid: '@azure/msal-react.useIsAuthenticated'
package: '@azure/msal-react'
summary: >-
Returns whether or not a user is currently signed-in. Optionally provide 1
or more accountIdentifiers to determine if a specific user is signed-in
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function useIsAuthenticated(matchAccount?: AccountIdentifiers): boolean'
parameters:
- id: matchAccount
type: <xref uid="@azure/msal-react.AccountIdentifiers" />
description: |+
return:
description: ''
type: boolean
- name: >-
useMsalAuthentication(InteractionType, PopupRequest | RedirectRequest |
SsoSilentRequest, AccountIdentifiers)
uid: '@azure/msal-react.useMsalAuthentication'
package: '@azure/msal-react'
summary: >-
If a user is not currently signed in this hook invokes a login. Failed
logins can be retried using the login callback returned.
If a user is currently signed in this hook attempts to acquire a token.
Subsequent token requests can use the acquireToken callback returned.
Optionally provide a request object to be used in the login/acquireToken
call.
Optionally provide a specific user that should be logged in.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function useMsalAuthentication(interactionType: InteractionType,
authenticationRequest?: PopupRequest | RedirectRequest |
SsoSilentRequest, accountIdentifiers?: AccountIdentifiers):
MsalAuthenticationResult
parameters:
- id: interactionType
type: InteractionType
description: ''
- id: authenticationRequest
type: PopupRequest | RedirectRequest | SsoSilentRequest
description: ''
- id: accountIdentifiers
type: <xref uid="@azure/msal-react.AccountIdentifiers" />
description: |+
return:
description: ''
type: <xref uid="@azure/msal-react.MsalAuthenticationResult" />
- name: >-
accountArraysAreEqual(Array<AccountIdentifiers>,
Array<AccountIdentifiers>)
uid: '@azure/msal-react.accountArraysAreEqual'
package: '@azure/msal-react'
summary: |-
Helper function to determine whether 2 arrays are equal
Used to avoid unnecessary state updates
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function accountArraysAreEqual(arrayA: Array<AccountIdentifiers>,
arrayB: Array<AccountIdentifiers>): boolean
parameters:
- id: arrayA
type: Array<<xref uid="@azure/msal-react.AccountIdentifiers" />>
description: ''
- id: arrayB
type: Array<<xref uid="@azure/msal-react.AccountIdentifiers" />>
description: |+
return:
description: ''
type: boolean
- name: 'getAccountByIdentifiers(AccountInfo[], AccountIdentifiers)'
uid: '@azure/msal-react.getAccountByIdentifiers'
package: '@azure/msal-react'
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function getAccountByIdentifiers(allAccounts: AccountInfo[],
accountIdentifiers: AccountIdentifiers): AccountInfo | null
parameters:
- id: allAccounts
type: 'AccountInfo[]'
description: ''
- id: accountIdentifiers
type: <xref uid="@azure/msal-react.AccountIdentifiers" />
description: ''
return:
description: ''
type: AccountInfo | null
- name: 'getChildrenOrFunction<T>(React.ReactNode | FaaCFunction, T)'
uid: '@azure/msal-react.getChildrenOrFunction'
package: '@azure/msal-react'
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function getChildrenOrFunction<T>(children: React.ReactNode |
FaaCFunction, args: T): React.ReactNode
parameters:
- id: children
type: >-
<xref uid="React.ReactNode" /> | <xref
uid="@azure/msal-react.FaaCFunction" />
description: ''
- id: args
type: T
description: ''
return:
description: ''
type: <xref uid="React.ReactNode" />
classes:
- '@azure/msal-react.ReactAuthError'