You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, it appears Google does not have support for Ruby. So, I made my own auth file!
9
9
10
-
This gem is an extraction of that file and is still in development.
10
+
## Installation:
11
+
#### Using Rubygems:
12
+
```
13
+
gem install firebase-token-verify
14
+
```
11
15
12
-
If you can't wait for the gem to be finished, you're welcome to checkout the lib directory and add the code to your system as needed.
16
+
#### Using Bundler
17
+
Add `gem 'firebase-token-verify'` to your Gemfile and run `bundle install`
18
+
19
+
## Example use-case scenario:
20
+
1) Lookup your firebase id and add it to your Ruby code, for example: `PROJECT_ID = <your_firebase_project_id>`
21
+
2) Obtain a user token. You will need to be connected with JavaScript, or a mobile app, to obtain the user token. I usually obtain a user token using a JavaScript method similar to the one below:
0 commit comments