Skip to content

Commit

Permalink
Functions info updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSeylani committed Jul 11, 2024
1 parent e46255a commit 32b19c7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/passage_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ class PassageFlutter {

// OIDC Methods

/// Start Hosted Auth
/// Authentication Method for Hosted Apps
///
/// Authorizes user via a Hosted Login feature.
/// If your Passage app is Hosted, use this method to register and log in your user. This method will open up a Passage login experience
/// Throws:
/// `PassageError`
Expand All @@ -370,18 +370,19 @@ class PassageFlutter {
///
/// Finishes a Hosted login/sign up by exchanging the auth code for Passage tokens.
/// Parameters:
/// code: The code returned from the Hosted login.
/// clientSecret: The client secret for the Passage App.
/// state: The state returned from the Hosted login.
/// code: The code returned from app link redirect to your activity.
/// clientSecret: You hosted app's client secret, found in Passage Console's OIDC Settings.
/// state: The state returned from app link redirect to your activity.
/// Throws:
/// `PassageError`
Future<void> hostedAuthFinish(String code, String clientSecret, String state) {
return PassageFlutterPlatform.instance.hostedAuthFinish(code, clientSecret, state);
}

/// Logout with hosted auth
//
/// Logout Method for Hosted Apps
///
/// If your Passage app is Hosted, use this method to log out your user. This method will briefly open up a web view where it will log out the
/// Throws:
/// `PassageError`
Expand Down

0 comments on commit 32b19c7

Please sign in to comment.