How To Get Shop Name And AccessToken During OAuthProcess

I am trying to get access token and shopName from latest shopify app embedded code template.
Here is the following code

How would I get it when someone installs my app?