Getting URL Parameters on GatsbyJS

Is there a way to retrieve url parameters passed on pages of project built on GatsbyJS? I’m trying to implement a password reset function on my page using AWS, but they can only send the parameters …

How to use the code returned from Cognito to get AWS credentials?

Right now, I’m struggling to understand AWS Cognito so maybe someone could help me out. I set a domain to serve Cognito’s hosted UI for my User Pool like what’s described here. So when I go to https://<my-domain><MY_POOL_CLIENT_ID>&redirect_uri=https://localhost:8080 I get a login page where my users can login to my app with Google. That part is working great. I confused about what to do with the code that is returned from that page once my user logs in. So once I get redirected to Google and authorize the application to view my information, I get redirected back to one of