Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pocketbuilds/last_login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last Login

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.

Installation

  1. Install XPB.
  2. Use the builder:
xpb build --with github.com/pocketbuilds/last_login@latest

Setup

  1. Create a datetime field in an auth collection.
  2. Add the field to the plugin config.
  3. Restart the pocketbase app.

Plugin Config

# 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...
]

About

An xpb plugin that adds an automatically updating last_login field to auth collections.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages