Skip to content

Commit 0f4e2b9

Browse files
authored
Minor formatting update
Formatted section on setting up JWT authentication to make the list more readable
1 parent 92a2469 commit 0f4e2b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,10 @@ Add a web application to this project and grab the code snippet for later use.
902902
Then you have to configure the `jwtAuth.secrets` configuration in your `api.php` file.
903903
This can be done as follows:
904904

905-
a. Log a user in to your Firebase-based app, get an authentication token for that user
906-
b. Go to [https://jwt.io/](https://jwt.io/) and paste the token in the decoding field
907-
c. Read the decoded header information from the token, it will give you the correct `kid`
908-
d. Grab the public key via this [URL](https://www.googleapis.com/robot/v1/metadata/x509/[email protected]), which corresponds to your `kid` from previous step
905+
a. Log a user in to your Firebase-based app, get an authentication token for that user
906+
b. Go to [https://jwt.io/](https://jwt.io/) and paste the token in the decoding field
907+
c. Read the decoded header information from the token, it will give you the correct `kid`
908+
d. Grab the public key via this [URL](https://www.googleapis.com/robot/v1/metadata/x509/[email protected]), which corresponds to your `kid` from previous step
909909
e. Now, just fill `jwtAuth.secrets` with your public key in the `api.php`
910910

911911
Here is an example of what it should look like in the configuration:
@@ -965,7 +965,7 @@ and define a 'authorization.tableHandler' function that returns 'false' for thes
965965
},
966966

967967
The above example will restrict access to the table 'license_keys' for all operations.
968-
968+
969969
'authorization.columnHandler' => function ($operation, $tableName, $columnName) {
970970
return !($tableName == 'users' && $columnName == 'password');
971971
},

0 commit comments

Comments
 (0)