Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up Google Chrome and ChromeDriver
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 131
chrome-version: 137
install-chromedriver: true
install-dependencies: false

Expand Down
11 changes: 5 additions & 6 deletions lib/passage_current_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class PassageCurrentUser {
///
/// Returns:
/// A `Future<CurrentUser>` representing the current Passage user's info,
/// or `null` if the current Passage user's authentication token could not be validated.
Future<CurrentUser> userInfo() {
return PassageFlutterPlatform.instance.getCurrentUser();
}
Expand Down Expand Up @@ -97,7 +96,7 @@ class PassageCurrentUser {
/// Retrieves a list of WebAuthn passkeys associated with the authenticated user.
///
/// Returns:
/// A `Future<List<Passkey>>` containing all WebAuthn passkeys for the current user.
/// A `Future<List<Passkey>>?` containing all WebAuthn passkeys for the current user.
///
/// Throws:
/// `PassageError` if an error occurs during the retrieval process.
Expand All @@ -122,7 +121,7 @@ Future<UserSocialConnections?> socialConnections() {
/// - `socialConnectionType`: The type of social connection to delete.
///
/// Returns:
/// A `Future<void>` that resolves when the social connection is deleted.
/// A `Future<void>?` that resolves when the social connection is deleted.
///
/// Throws:
/// `PassageError` if an error occurs during the deletion process.
Expand All @@ -133,7 +132,7 @@ Future<void>? deleteSocialConnection(SocialConnection socialConnectionType) {
/// Fetches the metadata associated with the authenticated user.
///
/// Returns:
/// A `Future<Metadata>` containing the metadata for the user.
/// A `Future<Metadata?>` containing the metadata for the user.
///
/// Throws:
/// `PassageError` if an error occurs during the retrieval process.
Expand All @@ -147,7 +146,7 @@ Future<Metadata?> metadata() {
/// - `metaData`: The new metadata to update for the user.
///
/// Returns:
/// A `Future<CurrentUser>` containing the updated information of the user.
/// A `Future<CurrentUser>?` containing the updated information of the user.
///
/// Throws:
/// `PassageError` if an error occurs during the update process.
Expand All @@ -158,7 +157,7 @@ Future<CurrentUser>? updateMetadata(Metadata metaData) {
/// Signs out the current user, clearing local tokens and logging out of the system.
///
/// Returns:
/// A `Future<void>` that resolves when the user is successfully signed out.
/// A `Future<void>?` that resolves when the user is successfully signed out.
///
/// Throws:
/// `PassageError` if an error occurs during the sign-out process.
Expand Down
4 changes: 1 addition & 3 deletions lib/passage_flutter_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,7 @@ class PassageFlutterWeb extends PassageFlutterPlatform {
Future<model.Passkey> editPasskeyName(
String passkeyId, String newPasskeyName) async {
try {
final objFromMap = js_util.jsify({'friendly_name': newPasskeyName});
final resultPromise =
passage.currentUser.editPasskey(passkeyId, objFromMap);
final resultPromise = passage.currentUser.editPasskey(passkeyId, newPasskeyName);
final jsObject = await js_util.promiseToFuture(resultPromise);
return model.Passkey.fromJson(jsObject);
} catch (e) {
Expand Down
7 changes: 3 additions & 4 deletions lib/passage_magliclink.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PassageMagiclink {
/// - `language`: The language code for the magic link.
///
/// Returns:
/// A `Future<String>` that returns a magic link ID used to check the status
/// A `Future<MagicLink>` that returns a magic link ID used to check the status
/// of the magic link with `getMagicLinkStatus`.
///
/// Throws:
Expand Down Expand Up @@ -62,9 +62,8 @@ class PassageMagiclink {
/// - `id`: The magic link ID.
///
/// Returns:
/// A `Future<AuthResult?>` object that includes a redirect URL and saves the
/// authorization token and (optional) refresh token securely to the device, or `null` if
/// the magic link has not been verified.
/// A `Future<AuthResult>` object that includes a redirect URL and saves the
/// authorization token and (optional) refresh token securely to the device
///
/// Throws:
/// `PassageError`
Expand Down
4 changes: 2 additions & 2 deletions lib/passage_otp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PassageOneTimePasscode {
/// - `language`: The language code for the one time passcode.
///
/// Returns:
/// A `Future<String>` that returns a one-time passcode ID used to activate
/// A `Future<OneTimePasscode>` that returns a one-time passcode ID used to activate
/// the passcode in `oneTimePasscodeActivate`.
///
/// Throws:
Expand All @@ -30,7 +30,7 @@ class PassageOneTimePasscode {
/// - `language`: The language code for the one time passcode.
///
/// Returns:
/// A `Future<String>` that returns a one-time passcode ID used to activate
/// A `Future<OneTimePasscode>` that returns a one-time passcode ID used to activate
/// the passcode in `oneTimePasscodeActivate`.
///
/// Throws:
Expand Down
4 changes: 2 additions & 2 deletions lib/passage_token_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PassageTokenStore {
/// If the stored auth token is invalid, this method will use the refresh token to get and save a new auth token.
///
/// Returns:
/// A `Future<String?>` representing the user's auth token,
/// A `Future<String>` representing the user's auth token,
/// Throws:
/// `PassageError`
Future<String> getValidAuthToken() {
Expand All @@ -27,7 +27,7 @@ class PassageTokenStore {
/// Refreshes, retrieves, and saves a new authToken for the currently authenticated user using their refresh token.
///
/// Returns:
/// A `Future<String>` representing the new auth token.
/// A `Future<AuthResult>` representing the new auth token.
///
/// Throws:
/// `PassageError`
Expand Down
Loading