Firebase allows only one language for confirmations emails. Whole nicely done products are useless for multi-language apps. I want to make my own confirmation system. The only question is how can I get this oobCode which is generated inside firebase. site.com?mode=&oobCode=
Thank you.
The link in the "email verification" email contains the oobCodeas a query string parameter. There is actually no way to generate this code via the Firebase Authentication API or via the Admin SDKs. So, you need to extract the code from the query string and call the REST API endpointwith this code.
Microsoft.Extensions.Localization.IStringLocalizerFactory The AddLocalization (IServiceCollection, Action<LocalizationOptions>) overload accepts a setupAction parameter of type Action<LocalizationOptions>. This allows you to configure localization options.
You should proceed to the localization step only after completing the Localizability review step to verify that the globalized application is ready for localization. An application that is ready for localization is separated into two conceptual blocks: a block that contains all user interface elements and a block that contains executable code.
For more information on hosting, see .NET Generic Host. The primary mechanism for isolating localizable strings is with resource files. A resource file is an XML file with the .resx file extension. Resource files are translated prior to the execution of the consuming application — in other words, they represent translated content at rest.
There is currently no way to generate a valid oobCode
value through the Firebase Authentication API. It can only be sent in the (as you've said "non-translatable") email message.
But you can build your own email verification mechanism if you want, using your own confirmation code to verify email ownership. You'd:
emailVerified
property to true
.For an example of the last step, see: https://firebase.google.com/docs/auth/admin/manage-users#update_a_user
Thanks to @Nikhil in the comments: Alternatively you can roll your own verification altogether and use the Admin SDK to set emailVerified
to true. See the Firebase documentation for an example of that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With