ezidam + refresh tokens: create and insert refresh token
This commit is contained in:
parent
609933d98f
commit
ef8d75ecee
14 changed files with 204 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
drop table if exists refresh_tokens;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
create table if not exists refresh_tokens
|
||||
(
|
||||
-- info
|
||||
token TEXT not null primary key,
|
||||
ip_address TEXT not null,
|
||||
user TEXT not null references users (id),
|
||||
|
||||
-- timings
|
||||
created_at TEXT not null default CURRENT_TIMESTAMP,
|
||||
expires_at TEXT not null,
|
||||
used_at TEXT,
|
||||
revoked_at TEXT
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue