Ramon Schmidt
Ramon Schmidt
WWasp-lang
Created by Andrea on 10/6/2024 in #đŸ™‹questions
Refresh token is null
I'll try it! Thank you @Andrea
18 replies
WWasp-lang
Created by Andrea on 10/6/2024 in #đŸ™‹questions
Refresh token is null
now i need to know how to refresh it, when it's necessary
18 replies
WWasp-lang
Created by Andrea on 10/6/2024 in #đŸ™‹questions
Refresh token is null
I already have created an onAfterLogin hook
export const onAfterLogin: OnAfterLoginHook = async ({ providerId, user, oauth, req}) => {

console.log('xxxx', providerId, oauth);

export const onAfterLogin: OnAfterLoginHook = async ({ providerId, user, oauth, req}) => {

console.log('xxxx', providerId, oauth);

and added it to auth:{methods like that:
onAfterLogin: import { onAfterLogin } from "@src/auth/hooks",
onAfterLogin: import { onAfterLogin } from "@src/auth/hooks",
then inside oauth param i can access tokens: { accessToken: 'asduahsdiuhasdaisdasd' refreshToken: null, accessTokenExpiresAt: 2024-10-07T20:36:52.622Z, tokenId: asduhasdhuasd
18 replies
WWasp-lang
Created by Andrea on 10/6/2024 in #đŸ™‹questions
Refresh token is null
Hi @Andrea did you fix it? I'm trying to get the access token also, to save it and use it in my server app. Could you please have some tips to share? @miho I'll be glad if you have something too đŸ™‚
18 replies