From 276dab207c22936c3c6804ca63dbc04f0729cfb5 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sat, 14 Feb 2026 09:28:25 +0000 Subject: [PATCH] feat: implement three-phase Amber login flow in AuthModal - Updated Amber login button to reflect new three-phase process. - Added handling for reading public key and signature from clipboard. - Introduced new state management for Amber login phases. - Enhanced user feedback during each phase with appropriate messaging. - Refactored related functions for clarity and maintainability. --- src/components/AuthModal.vue | 207 +++++++++++++++++----- src/components/VideoPlayer.vue | 32 ++-- src/composables/useAuth.ts | 9 +- src/services/auth.service.ts | 24 ++- src/stores/auth.ts | 26 ++- src/views/Profile.vue | 306 ++++++++++++++++++++++----------- 6 files changed, 434 insertions(+), 170 deletions(-) diff --git a/src/components/AuthModal.vue b/src/components/AuthModal.vue index ea9b59d..8ac39b8 100644 --- a/src/components/AuthModal.vue +++ b/src/components/AuthModal.vue @@ -86,7 +86,7 @@ - + -
+ + +

- Approved in Amber? Tap below to complete sign-in. + Approved in Amber? Tap below to continue.

+ +
+ + +
+

+ Approve the sign-in request in Amber, then tap below. +

+