Below is code to create user by firebase authentication.
require 'google/apis/identitytoolkit_v3'
service_account = "./firebase-auth.json"
service = Google::Apis::IdentitytoolkitV3::IdentityToolkitService.new
service.authorization = Google::Auth::ServiceAccountCredentials.make_creds(
json_key_io: File.open(service_account),
scope: 'https://www.googleapis.com/auth/identitytoolkit'
)
request = Google::Apis::IdentitytoolkitV3::SignupNewUserRequest.new(
email: 'sample@example.com',
email_verified: false
)
service.signup_new_user(request)
After create user, I want to send email link for sign-in automatically.Maybe it's possible by Node.js, Java, Python, and Go because they're supported officially. https://firebase.google.com/docs/auth/admin/email-action-links#node.js_3 Is there a way to do that by ruby-client? (I just want to send email below)