MCPcopy Create free account
hub / github.com/supabase/auth / must

Function must

internal/crypto/utils.go:3–9  ·  view source on GitHub ↗
(a T, err error)

Source from the content-addressed store, hash-verified

1package crypto
2
3func must[T any](a T, err error) T {
4 if err != nil {
5 panic(err)
6 }
7
8 return a
9}

Callers 11

TestMustFunction · 0.85
firebaseScryptFunction · 0.85
GenerateFromPasswordFunction · 0.85
generateOtpFunction · 0.85
secureRandomIntFunction · 0.85
DecryptMethod · 0.85
StringMethod · 0.85
deriveSymmetricKeyFunction · 0.85
NewEncryptedStringFunction · 0.85
SecureAlphanumericFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMustFunction · 0.68