+ Jwt tables - SEE NOTE
! wat - because have to do maintain permissions on a per request level we have to do this check for permissions at what is basically every level, this does mean we have to hit the database for a lot of routes however there is a check that requests go through in order to avoid hitting the database whenever possible + rng field in claims now has real purpose It's purpose is to act as a validator field in the jwt table. By verifying rng fields we no longer have to store whole jwt's
This commit is contained in:
1
json-api/migrations/2021-05-07-201858_jwt/down.sql
Normal file
1
json-api/migrations/2021-05-07-201858_jwt/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE `jwt`;
|
||||
5
json-api/migrations/2021-05-07-201858_jwt/up.sql
Normal file
5
json-api/migrations/2021-05-07-201858_jwt/up.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE IF NOT EXISTS `jwt` (
|
||||
`id` BIGINT UNSIGNED NOT NULL,
|
||||
`rng` VARCHAR(48) NOT NULL,
|
||||
PRIMARY KEY(`id`)
|
||||
);
|
||||
Reference in New Issue
Block a user