Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Dec 6, 2023
1 parent 86bd3c7 commit 647fdc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions auth0_flutter/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ final credentials = await auth0
<details>
<summary>Web</summary>

Custom parameters can be configured globally.

```dart
await auth0Web.onLoad(
parameters: {'connection': 'github'});
```

Custom parameters can be configured when calling `loginWithRedirect`. Any globally configured parameter (passed to `onLoad()`) can be overriden when passing the same custom parameter to `loginWithRedirect`.

```dart
await auth0Web.loginWithRedirect(
redirectUrl: 'http://localhost:3000',
Expand Down

0 comments on commit 647fdc0

Please sign in to comment.