If within farcaster redirect skip grant access screen

This commit is contained in:
Shreyaschorge
2025-07-08 19:16:39 +05:30
parent 485c190695
commit 822db9101f
2 changed files with 18 additions and 9 deletions

View File

@@ -149,9 +149,6 @@ export function AuthDialog({
<div className='text-red-600 dark:text-red-400 mb-4'>
{error?.message || 'Unknown error, please try again.'}
</div>
<button onClick={onClose} className='btn btn-primary'>
Try Again
</button>
</div>
) : (
<div className='text-center'>
@@ -195,10 +192,15 @@ export function AuthDialog({
<button
onClick={() =>
window.open(
content.qrUrl.replace(
'https://farcaster.xyz/',
'farcaster://'
),
content.qrUrl
.replace(
'https://farcaster.xyz/',
'https://client.farcaster.xyz/deeplinks/'
)
.replace(
'https://client.farcaster.xyz/deeplinks/',
'farcaster://'
),
'_blank'
)
}