Skip to content

Commit

Permalink
add type param to magic links
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Pobletts committed Jul 7, 2023
1 parent 6c3b32b commit 3bd08db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/passageidentity/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def create_magic_link(
magic_link_path: "",
redirect_url: "",
language: "",
ttl: 60
ttl: 60,
type: "login"
)
magic_link_req = {}
magic_link_req["user_id"] = user_id unless user_id.empty?
Expand All @@ -172,6 +173,7 @@ def create_magic_link(
] = magic_link_path unless magic_link_path.empty?
magic_link_req["redirect_url"] = redirect_url unless redirect_url.empty?
magic_link_req["ttl"] = ttl unless ttl == 0
magic_link_req["type"] = type

begin
response =
Expand Down
2 changes: 1 addition & 1 deletion passageidentity.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'passageidentity'
s.version = '0.2.2'
s.version = '0.2.3'
s.summary = 'Passage SDK for biometric authentication'
s.description =
'Enables verification of server-side authentication and user management for applications using Passage'
Expand Down

0 comments on commit 3bd08db

Please sign in to comment.