MCPcopy
hub / github.com/pocketbase/pocketbase / RefreshTokenKey

Method RefreshTokenKey

core/record_model_auth.go:46–48  ·  view source on GitHub ↗

RefreshTokenKey generates and sets a new random auth record "tokenKey".

()

Source from the content-addressed store, hash-verified

44
45// RefreshTokenKey generates and sets a new random auth record "tokenKey".
46func (m *Record) RefreshTokenKey() {
47 m.Set(FieldNameTokenKey+autogenerateModifier, "")
48}
49
50// SetPassword sets the "password" record field value (usually available with Auth collections).
51func (m *Record) SetPassword(password string) {

Callers 7

TestRecordTokenKeyFunction · 0.95
SetRandomPasswordMethod · 0.95
SubmitMethod · 0.95
onRecordSaveExecuteFunction · 0.80

Calls 1

SetMethod · 0.95