This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends Activity { | |
private RelativeLayout mTagContainer; | |
private RelativeLayout mDiscreteTag; | |
private ImageView mImageTag; | |
private TextView mLabelTag; | |
private SeekBar mSeekbar; | |
private Context mContext; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EXPIRY_MARGIN = 10 * 1000; | |
class Auth { | |
initialize = async () => { | |
// Get the latest session, token may be refreshed | |
const { data, error } = await supabase.auth.getSession(); | |
if (error) throw error; | |
if (data.session?.expires_at) { | |
// Create an alarm 10 seconds before token expiring |