Jason Web Token


In authentication, when the user successfully logs in using their credentials,
a JSON Web Token will be returned.
(ログインに成功するとjwtで作成したaccess tokenが受信されます)

アクセスtokenをlocalstorage->api呼び出しに保存してrequest headerに送信
① Local Storage:
storeses data with no expiration date(ドメインに永続的に保存)
② Session Storage:
similar to local storage but expires when browser is closed.
ドメイン内のセッションを1つだけ保存したい場合.ウィンドウを閉じるとデータが消えます
③Cookie:このドメインに日付を設定し、その時点まで保存したい
Local Storage and Session Storage are nearly identical with the exception of persistence. Session Storage is only available for the duration of the browser session
whereas Local Storage permanently stores data in the domain.

*API(Application Programming Interface)*

: A software intermediary that allows two applications to talk to each other.