Rename package from httpauth to httpauthfirebase to follow ecosystem convention (repo name = package name, hyphens removed). Bump httpauth dependency from v0.1.0 to v1.0.0 and rbac indirect dependency from v0.9.0 to v1.0.0. BREAKING CHANGE: import path unchanged (code.nochebuena.dev/go/httpauth-firebase) but package identifier changes from httpauth to httpauthfirebase — remove any import alias previously used to disambiguate from code.nochebuena.dev/go/httpauth.
19 lines
409 B
Go
19 lines
409 B
Go
package httpauthfirebase_test
|
|
|
|
import (
|
|
"context"
|
|
|
|
"firebase.google.com/go/v4/auth"
|
|
|
|
httpauthfirebase "code.nochebuena.dev/go/httpauth-firebase"
|
|
)
|
|
|
|
type mockVerifier struct{}
|
|
|
|
func (m *mockVerifier) VerifyIDTokenAndCheckRevoked(_ context.Context, _ string) (*auth.Token, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// Compile-time interface satisfaction check.
|
|
var _ httpauthfirebase.TokenVerifier = (*mockVerifier)(nil)
|