Skip to content

Instantly share code, notes, and snippets.

View MaciejKaras's full-sized avatar

Maciej Karaś MaciejKaras

  • MongoDB
  • Warsaw, Poland
  • 23:55 (UTC +01:00)
View GitHub Profile
@MaciejKaras
MaciejKaras / token_verify.go
Last active September 17, 2021 14:33
Google tokenId validation example using "google.golang.org/api/idtoken" from Google Client API
package auth
import (
"context"
"errors"
"fmt"
"google.golang.org/api/idtoken"
"time"
)
package pl.mkaras.utils;
import android.content.Context;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;