Skip to content

Commit ad79a9c

Browse files
authored
Update README.md
1 parent 9069b67 commit ad79a9c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

authentication/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,17 @@ UberAuthClientImpl.authenticate(
136136
## Forcing Login or Consent
137137
The auth provider accepts an optional `prompt` parameter that can be used to force the login screen or the consent screen to be presented.
138138

139-
**Note:** Login is only available for .inApp auth destinations.
139+
**Note:** Login is only available for `inApp` auth destinations
140140

141141
```
142142
// 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
144144
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
147150
)
148151
```
149152

0 commit comments

Comments
 (0)