{{define "content"}}

Account

Signed in as {{.Principal.User.Username}} ({{.Principal.User.Role}}).

{{with .Data.NewToken}}

New API token

Copy it now. It will not be shown again.

{{.}}

Use it as Authorization: Bearer … or NOEMA_API_TOKEN for noemactl.

{{end}}

Sessions

{{range .Data.Sessions}}{{end}}
WhereClientLast seen
{{.IP}}{{if eq .ID $.Principal.SessionID}} current{{end}} {{.UserAgent}} {{ago .LastSeenAt}} {{if ne .ID $.Principal.SessionID}}
{{end}}

Change password

Other sessions are signed out when the password changes.

API tokens

{{range .Data.Tokens}}{{else}}{{end}}
NameCreatedLast used
{{.Name}}{{date .CreatedAt}}{{if .LastUsedAt}}{{ago .LastUsedAt}}{{else}}never{{end}}
No tokens.
{{end}}