Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

PassageError class is not found in Passage::User class #175

@JewelSam

Description

@JewelSam

Describe the bug
When code reaches the point where PassageError is called in the Passage::User class, error uninitialized constant Passage::User::PassageError raised.

To Reproduce
Steps to reproduce the behavior:

  1. Create a user in passage identity system
  2. Try to create a user again with the same email

Expected behavior
You should see Passage::PassageError with the message: "user: already exists."

Screenshots
You will see an error uninitialized constant Passage::User::PassageError

Backtrace:

"/Users/username/.rbenv/versions/3.3.7/lib/ruby/gems/3.3.0/gems/passageidentity-1.0.1/lib/passageidentity/user.rb:126:in `rescue in create'"
"/Users/username/.rbenv/versions/3.3.7/lib/ruby/gems/3.3.0/gems/passageidentity-1.0.1/lib/passageidentity/user.rb:122:in `create'"

Passage SDK Versions
Gem version is 1.0.1

Third-Party SDK Versions

  • Ruby 3.3.7
  • Rails 8.0.1

Additional context
I haven't checked but I think, it is the same in auth.rb.
As a suggestion, the issue can be resolved by adding require_relative './error' to the top of the file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions