setting up api more nad getting closer to the connection to backend and adding auth middleware almost
This commit is contained in:
@@ -15,7 +15,7 @@ export default function Login() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
window.API.receive(channels.AUTH_TOKEN, async (accessToken: string) => {
|
||||
window.API.receive(channels.AUTH_TOKENS, async (accessToken: string) => {
|
||||
console.log(accessToken);
|
||||
|
||||
// get user info from access token
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
channels: {
|
||||
ACTIVATE_LOG_IN: "ACTIVATE_LOG_IN",
|
||||
AUTH_TOKEN: "AUTH_TOKEN",
|
||||
AUTH_TOKENS: "AUTH_TOKENS",
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user