File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1268,6 +1268,22 @@ static CppInstanceManager<Auth> g_auth_instances;
12681268 public string SmsCode { get { return SmsCodeInternal; } }
12691269%}
12701270
1271+ %attributestring(firebase::auth::PhoneAuthCredential, std::string, SmsCodeInternal, sms_code);
1272+ %typemap(cscode) firebase::auth::PhoneAuthCredential %{
1273+ // / Gets the auto-retrieved SMS verification code if applicable.
1274+ // /
1275+ // / This method is supported on Android devices only. It will return empty strings on
1276+ // / other platforms.
1277+ // /
1278+ // / When SMS verification is used, you will be called back first via
1279+ // / @ref PhoneAuthProvider.CodeSent, and later
1280+ // / PhoneAuthProvider.VerificationCompleted with a PhoneAuthCredential containing
1281+ // / a non-null SMS code if auto-retrieval succeeded. If Firebase used another approach
1282+ // / to verify the phone number and triggers a callback via
1283+ // / @ref PhoneAuthProvider.VerificationCompleted, then the SMS code can be null.
1284+ public string SmsCode { get { return SmsCodeInternal; } }
1285+ %}
1286+
12711287%typemap(csclassmodifiers) firebase::auth::FederatedAuthProvider " public class" ;
12721288
12731289%typemap(csclassmodifiers) firebase::auth::FederatedOAuthProvider
Original file line number Diff line number Diff line change @@ -82,6 +82,13 @@ Release Notes
8282 ` FetchAsync ` and ` ActivateAsync ` APIs aren't affected by this change.
8383 To learn more, see
8484 [ Get started with Firebase Remote Config] ( https://firebase.google.com/docs/remote-config/get-started?platform=unity#add-real-time-listener ) .
85+ - Auth: Deprecated a number of methods, appending ` _DEPRECATED ` to some of
86+ their names. This is a breaking change; you must either modify your code
87+ to refer to the ` _DEPRECATED ` methods, or switch to the new methods, which
88+ have new return types ` AuthResult ` (rather than ` SignInResult ` ). The
89+ deprecated methods will be removed in the * next* major release of the
90+ Firebase Unity SDK. * (Note: do not mix and match using the old
91+ and new methods or undefined behavior may result.)*
8592
8693### 10.7.0
8794- Changes
You can’t perform that action at this time.
0 commit comments