Merge pull request 'fix(reset-password): redirect to mvaglobalfret:// custom scheme' (#11) from fix/reset-password-deep-link-mva into main
Some checks failed
Deploy site to GitHub Pages / deploy (push) Has been cancelled
Some checks failed
Deploy site to GitHub Pages / deploy (push) Has been cancelled
This commit is contained in:
commit
bc919b07e0
@ -4,30 +4,54 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<title>Redirection — MVA Global Fret</title>
|
<title>Réinitialisation du mot de passe — MVA Global Fret</title>
|
||||||
<link rel="icon" type="image/png" href="PNG MVA GLOBAL FRET.png">
|
<link rel="icon" type="image/png" href="PNG MVA GLOBAL FRET.png">
|
||||||
<script>
|
<script>
|
||||||
// Bridge mobile deep link MVA Expo : redirect vers auth.mind4solutions.com
|
// Bridge mobile deep link MVA : redirect vers le custom scheme natif
|
||||||
// qui héberge le UI reset-password Phase 2.2 m4s-auth.
|
// mvaglobalfret://reset-password pour ouvrir le flow in-app de l'app Expo.
|
||||||
// Conserve le query param ?token=... pour que GoTrue PKCE flow continue.
|
// Le token est un UUID custom émis par mva-api (Fastify), validé côté app.
|
||||||
(function() {
|
(function() {
|
||||||
var params = window.location.search || '';
|
var token = new URLSearchParams(window.location.search).get('token');
|
||||||
var hash = window.location.hash || '';
|
if (token) {
|
||||||
window.location.replace('https://auth.mind4solutions.com/reset-password' + params + hash);
|
window.location.replace('mvaglobalfret://reset-password?token=' + encodeURIComponent(token));
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: system-ui, -apple-system, sans-serif; text-align: center; padding: 2rem; color: #333; }
|
body {
|
||||||
a { color: #c5a55a; font-weight: 600; }
|
font-family: system-ui, -apple-system, sans-serif;
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
color: #333;
|
||||||
|
max-width: 480px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
h1 { color: #2d3748; font-size: 1.5rem; }
|
||||||
|
p { line-height: 1.6; }
|
||||||
|
a.cta {
|
||||||
|
display: inline-block;
|
||||||
|
background: #c5a55a;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
a.cta:hover { background: #b3954a; }
|
||||||
|
.hint { color: #666; font-size: 0.9rem; margin-top: 2rem; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Redirection en cours...</h1>
|
<h1>Ouvrir l'app MVA Global Fret</h1>
|
||||||
<p>Si la redirection automatique ne fonctionne pas,
|
<p>Pour réinitialiser votre mot de passe, ouvrez le lien ci-dessous dans l'application MVA Global Fret installée sur votre téléphone.</p>
|
||||||
<a id="manual-link" href="https://auth.mind4solutions.com/reset-password">cliquez ici</a>.
|
<p>
|
||||||
|
<a id="manual-link" class="cta" href="#">Réinitialiser mon mot de passe</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="hint">Si rien ne se passe, vérifiez que l'application MVA Global Fret est bien installée sur votre appareil.</p>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('manual-link').href = 'https://auth.mind4solutions.com/reset-password' + (window.location.search || '');
|
var token = new URLSearchParams(window.location.search).get('token') || '';
|
||||||
|
document.getElementById('manual-link').href = 'mvaglobalfret://reset-password?token=' + encodeURIComponent(token);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user