Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.91 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.91 KB

FbaseAuth build Gem version downloads

FbaseAuth is a Ruby wrapper for Firebase Authentication.

Installation

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

Usage

Configuration example:

FbaseAuth.configure do |config| 
  config.api_key = 'example'
  config.return_secure_token = false #(default is true)
end

Usage examples:

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: '')

Development

Build and start Docker

make docker
make bash

See the Makefile for more commands.

Publish a new version

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/joaoscotto/fbase_auth.

License

The gem is available as open source under the terms of the MIT License.