Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
#!/usr/bin/env osascript -l JavaScript | |
const App = Application.currentApplication(); | |
App.includeStandardAdditions = true; | |
const kCFPrefsFeatureFlagsDir = '/Library/Preferences/FeatureFlags/Domain'; | |
const kCFPrefsFeatureEnabledKey = 'Enabled'; | |
const kUIKitDomainPrefsTemporaryPath = '/tmp/UIKit.plist'; | |
const kUIKitRedesignedTextCursorKey = 'redesigned_text_cursor'; |
/* Fix scrolling bug on iOS Safari with fixed elements and bottom bar */ | |
body.noscroll { | |
height: 100%; | |
overflow: hidden; /* make sure iOS does not try to scroll the body first */ | |
} | |
/* your wrapper, most likely mobile menu */ | |
.fixed-wrapper { | |
width: 100%; |
#! /usr/bin/env stack | |
-- stack --resolver lts-18.8 script | |
{-# LANGUAGE OverloadedStrings #-} | |
{- | |
This is a handy illustration of converting between five of the commonly-used | |
string types in Haskell (String, ByteString, lazy ByteString, Text and lazy | |
Text). |
package main | |
import ( | |
"fmt" | |
"net/mail" | |
"net/smtp" | |
"strings" | |
) | |
var host = "127.0.0.1" |