Closed Yuwen-ctw closed 1 month ago
@Yuwen-ctw 不過使用 useSearchParams
後端回傳的網址是不是就要改成 /auth/token?token=eyJhbGciO...
用 query 的方式來傳遞 token
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
✅ Knip Scan Result for https://github.com/Game-as-a-Service/Game-Lobby-Web/pull/391/commits/ad566910035c7a16c716ed150e4645385a8d5310
🤖 Lighthouse Scan Result for https://github.com/Game-as-a-Service/Game-Lobby-Web/pull/391/commits/ad566910035c7a16c716ed150e4645385a8d5310
@JohnsonMao 感謝提醒,已進行修正,改使用 asPath 屬性來取得 token。
Why need this change? / Root cause:
Changes made:
useRouter().query
withuseRouter().asPath
to retrieve thetoken
parameterTest Scope / Change impact:
-
Issue