Skip to content

Instantly share code, notes, and snippets.

@NirmalAriyathilake
NirmalAriyathilake / server.php
Last active October 27, 2018 03:43
OAuth And Social Login - server.php
<?php
require_once 'vendor/autoload.php';
session_start();
if(isset($_POST['idtoken'])){
// Get $id_token via HTTPS POST.
$id_token = $_POST['idtoken'];
$CLIENT_ID = "57064433868-ebkvuv5druld2jah3h8hmt5l71ennfqb.apps.googleusercontent.com";
$client = new Google_Client(['client_id' => $CLIENT_ID]); // Specify the CLIENT_ID of the app that accesses the backend
@NirmalAriyathilake
NirmalAriyathilake / launch.json
Last active October 27, 2022 19:20
Flutter vscode launch file - launch flutter app with verbose in debug mode
{
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"args": [
"--verbose"
]
@NirmalAriyathilake
NirmalAriyathilake / analysis_options.yaml
Created February 5, 2023 02:28
Flutter custom analysis options using flutter_lints
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
todo: ignore
exclude:
- generated_plugin_registrant.dart
- "**/*.freezed.dart"
- "**/*.g.dart"
- "**/*.config.dart"