Login Error Definitions (loginerrors/errors.go)

deplao-builder · src/bridge-e2ee/login/meta/pkg/messagix/loginerrors/errors.go · go · MIT
auth, security, tag:errors, tag:bridge, tag:mautrix

Provides standardized error responses for the login flow in the bridge, covering missing cookies, challenges, consent, checkpoints, and token invalidation.

// Source: https://github.com/babyvibe/deplao-builder | License: MIT | Copyright 2026 babyvibe
// Provided via justclaw.it.com; keep this notice with the code.
package loginerrors

import (
	"net/http"

	"maunium.net/go/mautrix/bridgev2"
)

var (
	MissingCookies   = bridgev2.RespError{ErrCode: "FI.MAU.META_MISSING_COOKIES", Err: "Missing cookies", StatusCode: http.StatusBadRequest}
	Challenge        = bridgev2.RespError{ErrCode: "FI.MAU.META_CHALLENGE_ERROR", Err: "Challenge required, please check the official website or app and then try again", StatusCode: http.StatusBadRequest}
	Consent          = bridgev2.RespError{ErrCode: "FI.MAU.META_CONSENT_ERROR", Err: "Consent required, please check the official website or app and then try again", StatusCode: http.StatusBadRequest}
	Checkpoint    

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key