-
Notifications
You must be signed in to change notification settings - Fork 122
feat(auth): Add emulator support #1400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
352ba83
6ccf941
b1a8d27
64fd592
4d012dc
ce63a9e
1e1a9ce
14ebb5d
62d5c3f
c2e952a
90f2f2d
9e5c7a8
79ee455
26547d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,8 @@ DeleteAccountRequest::DeleteAccountRequest(::firebase::App& app, | |
FIREBASE_ASSERT_RETURN_VOID(api_key); | ||
|
||
const char api_host[] = | ||
"https://www.googleapis.com/identitytoolkit/v3/relyingparty/" | ||
"deleteAccount?key="; | ||
std::string url; | ||
url.reserve(strlen(api_host) + strlen(api_key)); | ||
std::string url = GetUrl(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please fix, elsewhere too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
url.append(api_host); | ||
url.append(api_key); | ||
set_url(url.c_str()); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -629,6 +629,16 @@ class Auth { | |
/// to be called explicitly. | ||
void RemoveIdTokenListener(IdTokenListener* listener); | ||
#endif // not SWIG | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please run format_code.py! |
||
#if !defined(DOXYGEN) | ||
// Hidden from the public documentation for now | ||
|
||
/// Configures Firebase Auth to connect to an emulated host instead of the remote backend. | ||
void UseEmulator(const std::string host, uint32_t port); | ||
|
||
/// Get the emulator url | ||
static std::string GetEmulatorUrl(); | ||
#endif // !defined(DOXYGEN) | ||
|
||
/// Gets the App this auth object is connected to. | ||
App& app(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.