我有一个场景,我需要从 URL 读取令牌,这些令牌附加在哈希之后。我正在使用快递 4。
例如网址:http://localhost:3000/callback#access_token=1234-5678-90AB&token_type=bearer&expires_in=100
谁能帮我提取 access_token、token_type 和 expires_in 的值。
我有一个场景,我需要从 URL 读取令牌,这些令牌附加在哈希之后。我正在使用快递 4。
例如网址:http://localhost:3000/callback#access_token=1234-5678-90AB&token_type=bearer&expires_in=100
谁能帮我提取 access_token、token_type 和 expires_in 的值。