[mobile] Update passkeys URLs (#2101)

We now explicitly pass a recover URL to the accounts app, and I've added
some placeholder values. This URL will be opened when the user selects
the "Recover passkey" option on the authentication failure screen.
This commit is contained in:
Neeraj Gupta
2024-06-11 17:46:47 +05:30
committed by GitHub
4 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class PasskeyService {
Future<void> openPasskeyPage(BuildContext context) async {
try {
final jwtToken = await getJwtToken();
final url = "https://accounts.ente.io/passkeys/handoff?token=$jwtToken";
final url = "https://accounts.ente.io/passkeys?token=$jwtToken";
await launchUrlString(
url,
mode: LaunchMode.externalApplication,

View File

@@ -44,6 +44,7 @@ class _PasskeyPageState extends State<PasskeyPage> {
"https://accounts.ente.io/passkeys/verify?"
"passkeySessionID=${widget.sessionID}"
"&redirect=enteauth://passkey"
"&recover=enteauth://passkey/recover"
"&clientPackage=io.ente.auth",
mode: LaunchMode.externalApplication,
);

View File

@@ -42,7 +42,7 @@ class PasskeyService {
Future<void> openPasskeyPage(BuildContext context) async {
try {
final jwtToken = await getJwtToken();
final url = "https://accounts.ente.io/passkeys/handoff?token=$jwtToken";
final url = "https://accounts.ente.io/passkeys?token=$jwtToken";
await launchUrlString(
url,
mode: LaunchMode.externalApplication,

View File

@@ -44,6 +44,7 @@ class _PasskeyPageState extends State<PasskeyPage> {
"https://accounts.ente.io/passkeys/verify?"
"passkeySessionID=${widget.sessionID}"
"&redirect=ente://passkey"
"&recover=ente://passkey/recover"
"&clientPackage=io.ente.photos",
mode: LaunchMode.externalApplication,
);