MCPcopy
hub / github.com/pocketbase/pocketbase / IsAuth

Method IsAuth

core/collection_model.go:480–482  ·  view source on GitHub ↗

IsAuth checks if the current collection has "auth" type.

()

Source from the content-addressed store, hash-verified

478
479// IsAuth checks if the current collection has "auth" type.
480func (m *Collection) IsAuth() bool {
481 return m.Type == CollectionTypeAuth
482}
483
484// IsView checks if the current collection has "view" type.
485func (m *Collection) IsView() bool {

Callers 15

TestCollectionIsAuthFunction · 0.95
registerOTPHooksMethod · 0.80
FindAuthRecordByTokenMethod · 0.80
FindAuthRecordByEmailMethod · 0.80
newAuthTokenMethod · 0.80
NewVerificationTokenMethod · 0.80
NewPasswordResetTokenMethod · 0.80
NewEmailChangeTokenMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCollectionIsAuthFunction · 0.76