package pin import "context" type Data struct { Subject string `json:"sub"` Hash string `json:"hash"` LastUpdated int64 `json:"last_updated"` NumOfWrongAttempts int8 `json:"num_of_wrong_attempts"` PreviousPins []string `json:"previous_pins"` } type Storage interface { SavePIN(ctx context.Context, userID string, pin string) error LoginWithPIN(ctx context.Context, userID string, pin string) (*Data, error) IsOffline() bool }