# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/f342ypq
Golang 實現 JWT 認證**
認證是讓應用知道給應用發送請求的人是他所說的那個人。JSON web token (JWT) 是認證的一種方式,相比於基於 Session 認證,在系統中並不存儲任何關於用戶信息。本文演示使用 Golang 實現基於 JWT 認證的示例應用。JWT------1.1. JWT 格式假設用戶user1嘗試登錄應用,成功後收到 token 信息如下:eyJhbGciOiJIUzI1NiIsInR5 ⌘ Read more