An xpb plugin for Pocketbase that allows for easily configured last_login fields.
Configure datetime fiels in auth collections to be automatically set on an auth request.
xpb build --with github.com/pocketbuilds/last_login@latest- Create a datetime field in an auth collection.
- Add the field to the plugin config.
- Restart the pocketbase app.
# pocketbuilds.toml
[last_login]
# Array of datetime fields in auth collections to
# automatically set on auth request.
# - format: "<collection_name>.<field_name>"
fields = [
"my_auth_collection.last_login",
"users.last_sign_in",
# etc...
]