Skip to content

HAMUR_E5109: The access_tokens table is missing or lacks a column

The access_tokens table is missing or lacks a column. Error HAMUR_E5109 belongs to @hamur/auth (5101 – 5200).

Message

text
HAMUR_E5109 @hamur/auth: table "access_tokens" has no column "<column>"
text
HAMUR_E5109 @hamur/auth: no migration of "default" creates table "access_tokens"

Cause

auth.accessTokens is set, and the migrations of the default connection do not give the app the table that access tokens are stored in.

Fix

Add a migration that creates access_tokens with the columns the @hamur/auth reference lists.