jargonsdev/jargons.dev

Auth Feature - Fourth Iteration

開放

#30 建立於 2024年4月4日

 (1 則留言) (0 個反應) (0 位負責人)MDX (45 個分叉)auto 404
:arrow_upper_right: medium priority:sparkles: enhancementhacktoberfest

倉庫指標

星標
 (54 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The third iteration of the auth feature should focus on enhancing the OAuth flow and adding a signout/disconnect feature.

This is a follow up to the initial iterations...

Tasks

  1. Store OAuth Flow State Object in Cookies: Implement the todo that suggests storing the OAuth flow state object to cookies. This stored state should be compared with the state param returned from the GitHub OAuth flow in the github/oauth/callback handler to prevent CSRF attacks.

Related Files

  • github/oauth/callback.js
  • lib/actions/do-auth.js

Acceptance Criteria

  • OAuth flow state object is stored in cookies and compared with the state param.
  • Signout/disconnect feature is implemented and accessible through the doAuth action

Additional Notes

  • Nothing much... just ask a question or share ideas, if you've got any 😉

貢獻者指南