FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. rationem
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    rationem

    @rationem

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rationem Unfollow Follow

    Latest posts made by rationem

    • Issue with use OAuth with react blog - using NextJs ts

      Hi,
      I am attempting to follow the OAuth with react blog
      My stack uses NextJs and NestJs (built on express).
      In the server login route, I am getting a typescript error.
      The code with the error is:

      @Get('/login')
        public async login(@Req()request: Request, @Res() response: Response){
          const state = crypto.randomBytes(64)
          request.session.oauthState = state;
        }
      

      The typescript error is

      Property 'oauthState' does not exist on type 'Session & Partial<SessionData>'.ts(2339)
      

      I have the latest types definition file
      @types/express-session": "^1.17.5",

      Could you assist?

      Many thanks

      posted in Q&A
      R
      rationem
    • Any examples using NextJS - Serverside React?

      Are there any guides using NextJs where authorisation is both server-side and client-side?
      This particularly applies where a large number of the pages are generated serverside and HTML is sent to the browser as opposed to the standard React model of JS download that then retrieves the HTML as required.

      posted in Q&A
      R
      rationem