Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lalwani authored Dec 4, 2024
1 parent 9069b67 commit ad79a9c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,17 @@ UberAuthClientImpl.authenticate(
## Forcing Login or Consent
The auth provider accepts an optional `prompt` parameter that can be used to force the login screen or the consent screen to be presented.

**Note:** Login is only available for .inApp auth destinations.
**Note:** Login is only available for `inApp` auth destinations

```
// Will request login then show the consent screen, even if previously completed by the user
let prompt: [Prompt] = [.login, .consent]
val prompt = Prompt.LOGIN
let authProvider: AuthProviding = .authorizationCode(
prompt: prompt
val context = AuthContext(
authDestination: authDestination, // CrossApp() or InApp
authType: AuthType, // AuthCode or PKCE()
prefill: prefill?,
prompt
)
```

Expand Down

0 comments on commit ad79a9c

Please sign in to comment.