How to read hash params and query params through url in express 4

2k views Asked by At

I have a scenario where I need to read tokens from URL which are appended after a hash. I am using express 4.

Eg URL: http://localhost:3000/callback#access_token=1234-5678-90AB&token_type=bearer&expires_in=100

Can anybody help me to extract the values of access_token, token_type and expires_in.

1

There are 1 answers

0
Ashish Santikari On BEST ANSWER

Working: passed on the request to client and handled the fragmented url in client(Angular).