Redirect users to identity provider
JWT contains the callbackUrl
, idpKey
, clientId
, iat
, and exp
. JWT needs to be signed with the shopSecret
. All the following fields are required for the JWT:
callbackUrl
idpKey
clientId
iat
exp
Example JWT payload
$payload = [ 'callbackUrl' => $this->argument('callbackUrl'), 'idpKey' => $this->argument('idpKey'), 'clientId' => $this->argument('clientId'), 'iat' => time(), 'exp' => now()->modify('+15 minutes')->timestamp ];
iat
- current timestampexp
- expiration timestamp