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:
- Create a user in passage identity system
- 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
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.
Describe the bug
When code reaches the point where PassageError is called in the Passage::User class, error
uninitialized constant Passage::User::PassageErrorraised.To Reproduce
Steps to reproduce the behavior:
Expected behavior
You should see Passage::PassageError with the message: "user: already exists."
Screenshots
You will see an error
uninitialized constant Passage::User::PassageErrorBacktrace:
Passage SDK Versions
Gem version is 1.0.1
Third-Party SDK Versions
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.