This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getAdminTitle = (locationPathname: string) => { | |
switch (locationPathname) { | |
case '/admin': | |
return 'admin'; | |
case ( | |
locationPathname.match( | |
'/admin/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/offers', | |
) || {} | |
).input: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
To generate JWT you need mainly header, payload and secret. | |
Next you create a signature from the encoded header, the encoded payload, a secret, | |
the algorithm specified in the header. | |
The header is a JSON object with the following properties: | |
{ | |
"alg": "HS256", | |
"typ": "JWT" |