-
-
Notifications
You must be signed in to change notification settings - Fork 178
Closed
Description
The SessionAuthenticatable protocol provides a static sessionAuthenticator() function to which a databaseID can be passed as an optional argument:
let protected = app.grouped(
app.session.middleware,
User.sessionAuthenticator(.someDatabase)
)But this argument is ignored by the DatabaseSessionAuthenticator implementation, which causes an internal server error unless the database in which the User model lives is also the default database.
Metadata
Metadata
Assignees
Labels
No labels