Versions in this module Expand all Collapse all v1 v1.0.0 Nov 13, 2023 Changes in this version + var ErrExpiredAuthToken = status.Error(codes.PermissionDenied, "authorization token is expired or invalid") + var ErrInvalidAuthHeaderFormat = status.Error(codes.InvalidArgument, "invalid authorization header format") + var ErrInvalidAuthToken = status.Error(codes.InvalidArgument, "invalid authorization token") + var ErrInvalidMetadata = status.Error(codes.Internal, "missing metadata") + var ErrMissingAuthHeader = status.Error(codes.InvalidArgument, "missing authorization header") + var ErrUnsupportedAuthType = status.Error(codes.InvalidArgument, "unsupported authorization type") + func AuthMiddleware(ctx context.Context) error