You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure where is the best place for this issue.
I followed the sqlite example from axum-login, but replaced sqlite with tower-sessions-sqlx-store and postgres.
However I get this error when navigating to any page after sign in:
axum_login::service: could not create auth session from session err=invalid type: sequence, expected u8
I think it comes from the message pack decode, because when I run the session data in the database through online message pack decoders the auth_hash in axum-login.data is an array of arrays with a single number inside.
This is an example of the raw data in the database:
I'm not sure where is the best place for this issue.
I followed the sqlite example from axum-login, but replaced sqlite with tower-sessions-sqlx-store and postgres.
However I get this error when navigating to any page after sign in:
I think it comes from the message pack decode, because when I run the session data in the database through online message pack decoders the
auth_hash
inaxum-login.data
is an array of arrays with a single number inside.This is an example of the raw data in the database:
Which gets decoded as:
Switching from tower-sessions-sqlx-store to the built in
MemoryStore
fixes the problem.Edit: swapping out rmp-serde for serde_json also fixes the problem. Sadly flexbuffers doesn't support i128.
The text was updated successfully, but these errors were encountered: