Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| 🌞 Morning 28 commits ██░░░░░░░░░░░░░░░░░░░ 9.9% | |
| 🌆 Daytime 94 commits ██████▉░░░░░░░░░░░░░░ 33.3% | |
| 🌃 Evening 113 commits ████████▍░░░░░░░░░░░░ 40.1% | |
| 🌙 Night 47 commits ███▍░░░░░░░░░░░░░░░░░ 16.7% |
| /* | |
| Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
| This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
| Instructions: | |
| 1) The code may need to be modified depending on the language of your Twitter web site: | |
| * For English language web site, no modification needed. | |
| * For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
| * For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
| #!/bin/bash | |
| DELAY=300 #in secs - how often restart the script | |
| ROLL_PRICE=100 | |
| for (( ;; )); do | |
| WALLET=$(massa-client wallet_info) | |
| ADDRESS=$(echo -e $WALLET | grep -oP 'Address:\s*\K.*(?=\s+State)') | |
| FINAL_BAL=$(echo -e $WALLET | grep -oP 'final balance:\s*\K.*(?=\s+candidate balance)') |
@BotFather#POST: https://api.telegram.org/bot<token>/sendMessage
{
"chat_id": "@mysuperchannel",
code: https://github.com/zmts/supra-api-nodejs
Одной из болезней Node.js комьюнити это отсутствие каких либо крупных фреймворков, действительно крупных уровня Symphony/Django/RoR/Spring. Что является причиной все ещё достаточно юного возраста данной технологии. И каждый кузнец кует как умеет ну или как в интернетах посоветовали. Собственно это моя попытка выковать некий свой подход к построению Node.js приложений.
Допустим у наc есть такой CRUD и мы хотим проверять права доступа к каждому екшену.
class PostsController extends BaseController {
static get router () {
router.get('/', actionRunner(actions.ListAction))
router.get('/:id', actionRunner(actions.GetByIdAction))
router.post('/', actionRunner(actions.CreateAction))
router.patch('/', actionRunner(actions.UpdateAction))