MCPcopy
hub / github.com/pocketbase/pocketbase / findAuthCollection

Function findAuthCollection

apis/record_auth.go:71–79  ·  view source on GitHub ↗
(e *core.RequestEvent)

Source from the content-addressed store, hash-verified

69}
70
71func findAuthCollection(e *core.RequestEvent) (*core.Collection, error) {
72 collection, err := e.App.FindCachedCollectionByNameOrId(e.Request.PathValue("collection"))
73
74 if err != nil || !collection.IsAuth() {
75 return nil, e.NotFoundError("Missing or invalid auth collection context.", err)
76 }
77
78 return collection, nil
79}

Callers 12

recordAuthWithOAuth2Function · 0.85
recordRequestOTPFunction · 0.85
recordAuthWithPasswordFunction · 0.85
recordAuthMethodsFunction · 0.85
recordAuthImpersonateFunction · 0.85
recordRequestEmailChangeFunction · 0.85
recordAuthWithOTPFunction · 0.85
recordConfirmEmailChangeFunction · 0.85

Calls 3

IsAuthMethod · 0.80
NotFoundErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…