Help us shape the future of Go! Take the 2026 Go Developer Survey

standalone

command
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Example: standalone AuthSome server with memory store and password + social plugins.

Run:

go run ./_examples/standalone/

Then interact with the API:

# Health check
curl http://localhost:8080/v1/auth/health

# Sign up
curl -X POST http://localhost:8080/v1/auth/signup \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@example.com","password":"SecureP@ss123","name":"Alice"}'

# Sign in
curl -X POST http://localhost:8080/v1/auth/signin \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@example.com","password":"SecureP@ss123"}'

# Get current user (use session_token from sign-in response)
curl http://localhost:8080/v1/auth/me \
  -H 'Authorization: Bearer <session_token>'

# OpenAPI spec
curl http://localhost:8080/.well-known/authsome/openapi

Jump to

Keyboard shortcuts

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