Skip to content

Commit

Permalink
feat: Support the users.verify_password endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
agis committed Aug 30, 2022
1 parent 2bf9f2e commit db39c60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/clerk/resources/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def initialize(client)
def oauth_access_token(user_id, provider)
@client.request(:get, "#{@resource.resource_path(user_id)}/oauth_access_tokens/#{provider}")
end

def verify_password(user_id, password)
@client.request(:post, "#{@resource.resource_path(user_id)}/verify_password", body: { password: password })
end
end
end
end

0 comments on commit db39c60

Please sign in to comment.