Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| -- If prettier is installed with Yarn PnP, run below command to generate bin-prettier.js. | |
| -- `yarn dlx @yarnpkg/sdks base` | |
| -- @see https://yarnpkg.com/getting-started/editor-sdks | |
| local util = require("conform.util") | |
| local fs = require("conform.fs") | |
| return { | |
| "stevearc/conform.nvim", | |
| opts = { | |
| formatters = { |
| function findBreakoutElem(rootElem = document.body) { | |
| function checkElemWidth(elem) { | |
| if (elem.clientWidth > window.outerWidth) { | |
| console.log("The following element has a larger width than the window's outer width"); | |
| console.log(elem); | |
| console.log('<-------------------------------------------------------------------->'); | |
| } else if (elem.scrollWidth > window.outerWidth) { | |
| console.log("The following element has a larger width than the window's scroll width"); | |
| console.log(elem); | |
| console.log('<-------------------------------------------------------------------->'); |
| /* | |
| * Stripe WebGl Gradient Animation | |
| * All Credits to Stripe.com | |
| * ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
| * commented out for now. | |
| * https://kevinhufnagl.com | |
| */ |
| #!/bin/sh | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| # get computer name to append in Chime message | |
| username=$USER | |
| # a branch name where you want to prevent git push. In this case, it's "master" | |
| if [ "$branch" = "master" ]; then | |
| echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup |