From 647fdc06aa9efe7832170c123de30dcf8a2d6b73 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Wed, 6 Dec 2023 10:31:18 +0100 Subject: [PATCH] Add examples --- auth0_flutter/EXAMPLES.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/auth0_flutter/EXAMPLES.md b/auth0_flutter/EXAMPLES.md index f449992a..c9e6deea 100644 --- a/auth0_flutter/EXAMPLES.md +++ b/auth0_flutter/EXAMPLES.md @@ -180,6 +180,15 @@ final credentials = await auth0
Web +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',