Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hansemannn/titanium-firebase-auth
Use the Firebase Autentication SDK in Axway Titanium 🚀
https://github.com/hansemannn/titanium-firebase-auth
appcelerator axway firebase firebase-auth javascript native titanium
Last synced: about 1 month ago
JSON representation
Use the Firebase Autentication SDK in Axway Titanium 🚀
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-firebase-auth
- Owner: hansemannn
- License: other
- Created: 2017-10-16T15:13:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T11:07:00.000Z (6 months ago)
- Last Synced: 2024-07-22T13:16:21.914Z (6 months ago)
- Topics: appcelerator, axway, firebase, firebase-auth, javascript, native, titanium
- Language: Objective-C
- Size: 36.8 MB
- Stars: 7
- Watchers: 4
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Firebase Auth - Titanium Module
Use the native Firebase SDK in Axway Titanium. This repository is part of the [Titanium Firebase](https://github.com/hansemannn/titanium-firebase) project.## Supporting this effort
The whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep
this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository,
thank you!## Requirements
- [x] The [Firebase Core](https://github.com/hansemannn/titanium-firebase-core) module (iOS only)
- [x] iOS: Titanium SDK 10.0.0+
- [x] Android: Titanium SDK 9.0.0+## Download
- [x] [Stable release](https://github.com/hansemannn/titanium-firebase-auth/releases)
- [x] [![gitTio](http://hans-knoechel.de/shields/shield-gittio.svg)](http://gitt.io/component/firebase.auth)## API's
### `FirebaseAuth`
#### Methods (*Arguments TBA*)
##### `fetchProviders(parameters)` (Dictionary)
##### `createUserWithEmail(parameters)` (Dictionary)
##### `signInWithEmail(parameters)` (Dictionary)
##### `signOut(parameters)` (Dictionary)
##### `signInWithCredential(parameters)` (Dictionary)
##### `createCredential(parameters)` (Dictionary)
##### `signInAnonymously(parameters)` (Dictionary)
##### `signInWithCustomToken(parameters)`
##### `signInAndRetrieveDataWithCredential(parameters)` (Dictionary, iOS-only)
##### `sendPasswordResetWithEmail(parameters)` (Dictionary)
##### `confirmPasswordResetWithCode(parameters)` (Dictionary, iOS-only)
##### `checkActionCode(parameters)` (Dictionary)
##### `verifyPasswordResetCode(parameters)` (Dictionary, iOS-only)
##### `applyActionCode(parameters)` (Dictionary, iOS-only)
##### `addAuthStateDidChangeListener(callback)` (Function, iOS-only)
##### `removeAuthStateDidChangeListener()` (iOS-only)
##### `addIDTokenDidChangeListener(callback)` (Function, iOS-only)
##### `removeIDTokenDidChangeListener()` (iOS-only)
##### `fetchIDToken(forceRefresh, callback)` (Boolean, Function, Android-only)
#### Properties
##### `currentUser` (Dictionary, get)
##### `languageCode` (String, get)
##### `apnsToken` (Ti.Blob, get, iOS-only)
- For Android, use `fetchIDToken(forceRefresh, callback)`
### FirebaseAuth.AuthCredential
Virtual Type to be used in `signInWithCredential`. Create with `createCredential(parameters)`.
## Example
```js
// Require the Firebase Auth module
var FirebaseAuth = require('firebase.auth');// Sign-up
FirebaseAuth.createUserWithEmail({
email: '[email protected]',
password: 't1r0ck$!',
callback: function(e) {
if (!e.success) {
Ti.API.error('Create: error: ' + JSON.stringify(e));
return;
}Ti.API.info('Create: success!');
Ti.API.info(JSON.stringify(e.user));
}
});// Login
FirebaseAuth.signInWithEmail({
email: '[email protected]',
password: 't1r0ck$!',
callback: function(e) {
if (!e.success) {
Ti.API.error('Error: ' + JSON.stringify(e));
return;
}Ti.API.info('Success!');
Ti.API.info(JSON.stringify(e.user)); // e.g. {"uid":"...","photoURL":null,"phoneNumber":null,"email":"...","providerID":"...","displayName":null}}
});
```## Build
```js
cd ios
appc ti build -p ios --build-only
```## Legal
This module is Copyright (c) 2017-Present by Appcelerator, Inc. All Rights Reserved.
Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.