yes i know all of code.and i simply think response
is use later. maybe user settings? is it right?
Yeah I’ll need to double check but it’s for people to use later in their code.
So for most of the guide we use Functions then for this last section we have to switch completely to class components?!
I can see how that’s confusing. But this chapter is a little old, and needs to be updated to functions!
I hacked out most of the code but I have to spend some time working through the state mgmt for FacebookButton.js
I have 10 total “not defined” errors for ‘state’, ‘setState’, ‘response’ and ‘onLogin’
looks like I have to add
import { useAppContext } from “…/libs/contextLib”;
import React, { useState } from “react”;
then hack through it based on what is Login.js
ugh
does anyone have this working?
There might’ve been somebody that had done this in the past. But we’ll need to update it.
Hi! This chapter just covers manually setting up Facebook login. There’s no use of the SST constructs --no infrastrructure as code that is.
Yeah this is an older chapter. We have an example using SST’s constructs here: How to add Facebook authentication to a serverless API
But it isn’t a full-stack example.