Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Created May 12, 2019 16:54
Show Gist options
  • Select an option

  • Save rwehresmann/8372e5f998f611ab494e8abe895dcf12 to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/8372e5f998f611ab494e8abe895dcf12 to your computer and use it in GitHub Desktop.
module Auth0
class Signup
def self.perform(email, password)
HTTP.headers(accept: 'application/json')
.post(
"https://#{ENV['AUTH0_DOMAIN']}/dbconnections/signup",
form: {
client_id: ENV['AUTH0_CLIENT_ID'],
email: email,
password: password,
connection: 'Username-Password-Authentication',
}
)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment