This repository has been archived by the owner on Mar 31, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chaning Set/Remove to Auth/Unauth in alignment with other sdks
- Loading branch information
1 parent
dde5477
commit b7b20f0
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package firego | ||
|
||
// SetAuth sets the custom Firebase token used to authenticate to Firebase | ||
func (fb *Firebase) SetAuth(token string) { | ||
func (fb *Firebase) Auth(token string) { | ||
fb.auth = token | ||
} | ||
|
||
// RemoveAuth removes the current token being used to authenticate to Firebase | ||
func (fb *Firebase) RemoveAuth() { | ||
func (fb *Firebase) Unauth() { | ||
fb.auth = "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters