Skip to content

Instantly share code, notes, and snippets.

View rounaksalim95's full-sized avatar
⚒️
Building something cool...

Rounak Salim rounaksalim95

⚒️
Building something cool...
View GitHub Profile
Verifying my Blockstack ID is secured with the address 14wAx5r9qhoxyX5pA7W2Eq3CucvgxNDG8y https://explorer.blockstack.org/address/14wAx5r9qhoxyX5pA7W2Eq3CucvgxNDG8y
// The user already has an account and is signed in
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
mDatabase.child("userData").runTransaction(new com.google.firebase.database.Transaction.Handler() {
@Override
public com.google.firebase.database.Transaction.Result doTransaction(com.google.firebase.database.MutableData mutableData) {
Object value = mutableData.child(user.getUid()).getValue();
System.out.println("New value : " + value);
if (value == null) {