AscendingCreations / AxumSessionAuth

Library to Provide a User Authentication and privilege Token Checks.
MIT License
109 stars 11 forks source link

Surrealdb integration example #24

Closed MinaMatta98 closed 11 months ago

MinaMatta98 commented 11 months ago

Hello,

Where there any surrealdb integration examples?

Specifically, this line does not compile:

        .layer(AuthSessionLayer::<User, i64, SessionPgPool, PgPool>::new(Some(poll)).with_config(auth_config));

When swapped out for surreal session pool and surreal client.

genusistimelord commented 11 months ago

what version are you currently using and with what Axum? Also what is the error message?

genusistimelord commented 11 months ago

I have added an Example for surreal to the example folder.

MinaMatta98 commented 11 months ago

what version are you currently using and with what Axum? Also what is the error message?

I was using axum 0.6.1, the problem was the tower service implementation..

I will give it a shot. Thank you.

genusistimelord commented 11 months ago

the latest version of axum_session does not use axum 0.6 anymore we have moved to axum 0.7 since 0.10.0 if you need to use axum 0.6 use axum_session 0.9.0

MinaMatta98 commented 11 months ago

Hello,

This works as intended. Thank you.