Project

fbase_auth

0.0
No commit activity in last 3 years
No release in over 3 years
Firebase Authentication for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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.