File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,17 @@ UberAuthClientImpl.authenticate(
136
136
## Forcing Login or Consent
137
137
The auth provider accepts an optional ` prompt ` parameter that can be used to force the login screen or the consent screen to be presented.
138
138
139
- ** Note:** Login is only available for . inApp auth destinations.
139
+ ** Note:** Login is only available for ` inApp ` auth destinations
140
140
141
141
```
142
142
// Will request login then show the consent screen, even if previously completed by the user
143
- let prompt: [Prompt] = [.login, .consent]
143
+ val prompt = Prompt.LOGIN
144
144
145
- let authProvider: AuthProviding = .authorizationCode(
146
- prompt: prompt
145
+ val context = AuthContext(
146
+ authDestination: authDestination, // CrossApp() or InApp
147
+ authType: AuthType, // AuthCode or PKCE()
148
+ prefill: prefill?,
149
+ prompt
147
150
)
148
151
```
149
152
You can’t perform that action at this time.
0 commit comments