FbaseAuth is a Ruby wrapper for Firebase Authentication.
Add this line to your application's Gemfile:
gem 'fbase_auth'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install fbase_auth
FbaseAuth.configure do |config|
config.api_key = 'example'
config.return_secure_token = false #(default is true)
end
FbaseAuth::Client.sign_up(email:, password: '')
FbaseAuth::Client.sign_in_with_password(email:, password: '')
FbaseAuth::Client.send_email_verification(id_token: '')
FbaseAuth::Client.confirm_email_verification(oob_code: '')
FbaseAuth::Client.send_password_reset_email(email: '')
FbaseAuth::Client.verify_password_reset_code(oob_code: '')
FbaseAuth::Client.confirm_password_reset(oob_code: '', new_password: '')
FbaseAuth::Client.delete_account(id_token: '')
make docker
make bash
See the Makefile for more commands.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/joaoscotto/fbase_auth.
The gem is available as open source under the terms of the MIT License.