SSO Flow

You can find the SSO flow diagram here

SSO flow involves two steps as :

a.) Calling fetchAuthToken grantToken ()] at client end.

b.) Calling getAccessToken () server to server API() to fetch the access token.

c.) Calling getUserDetails () server to server API() to fetch the user details from PhonePe server.