Search code examples
node.jsexpressexpress-4

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


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.


Solution

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