ui

package
v0.0.0-...-f336d47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 2 Imported by: 0

README

Pocket Base OAuth2 Login/Consent UI

This is a temporary UI implementation for the OAuth2 login and consent screens. It uses the same markup as the existing Pocket Base UI to allow for a consistent look and feel using a shared stylesheet. Once the UI rewrite is complete, this implementation will be removed and replaced.

This UI uses Alpine.js. It is embedded directly into the plugin's Go code and served as static assets. The UI is passed props via a base64url-encoded state parameter in the query strings.

{
    "collection": "users",
    "client_id": "abc123",
    "client_name": "Example Client",
    "requested_scopes": ["read", "write"],
    "redirect_uri": "https://example.com/callback"
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DistDirFS, _ = fs.Sub(distDir, "dist/src")

DistDirFS contains the embedded dist directory files (without the "dist" prefix)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL