busy-horse-7122
09/13/2024, 4:38 PMquiet-vase-26313
09/13/2024, 7:55 PMInsufficient permissions for impersonation
even though i'm logged in as a user with a role that can impersonate. any ideas?quiet-vase-26313
09/13/2024, 8:02 PMquiet-vase-26313
09/13/2024, 8:38 PMquiet-vase-26313
09/13/2024, 8:47 PMquiet-vase-26313
09/13/2024, 8:47 PMcurved-hair-88407
09/15/2024, 10:30 AMaloof-midnight-21899
09/15/2024, 3:27 PMlemon-napkin-13338
09/16/2024, 9:39 AMfailed to get user: [G030003] Missing or invalid refresh token: Unable to find tokens from cookies",
The way I initiate the client is:
descopeClient, err := client.NewWithConfig(&client.Config{
ProjectID: descopeConfig.ProjectID,
DescopeBaseURL: descopeConfig.BaseURL,
CertificateVerify: api.CertificateVerifyNever,
SessionJWTViaCookie: true,
SessionJWTCookieDomain: "localhost:8888", //strings.Join(strings.Split(descopeConfig.BaseURL, ".")[1:], "."),
SessionJWTCookieSameSite: http.SameSiteNoneMode,
})
The way I initiate the login:
login.GET("/", func(c *gin.Context) {
_, err := descopeClient.Auth.OAuth().SignUpOrIn(context.Background(), descope2.OAuthGoogle, "<http://localhost:8888/api/sanity/me>", nil, nil, c.Writer)
if err != nil {
logger.Errorf(c, "failed to start oauth flow: %v", err)
}
})
The way I'm validating the session:
user, err := <http://descopeClient.Auth.Me|descopeClient.Auth.Me>(ctx.Request)
Any Idea?adventurous-lawyer-49260
09/16/2024, 12:04 PMplain-hydrogen-73368
09/16/2024, 1:18 PMfast-shampoo-15039
09/17/2024, 7:30 AMconst flow = useFlow()
const { manageSession } = useSession()
const startFlow = async () => {
try {
`const resp = await flow.start(<https://auth.descope.io/${projectId}?flow=custom-signup-in>
, DOMAIN)`
await manageSession(resp.data)
} catch (e) {
console.log("err", e)
// handle errors
}
}
if (Platform.OS === 'android') {
useEffect(() => {
Linking.addEventListener("url", async (event) => {
if (event.url.includes(DOMAIN)) {
try {
await flow.exchange(event.url);
} catch (error) {
console.log(error,"error");
}
}
});
return () => {
Linking.removeAllListeners("url");
};
}, [flow]);
}
Here these are in two different android devices.quaint-continent-22282
09/17/2024, 10:26 AMlemon-napkin-13338
09/17/2024, 10:29 AM<DescopeAuthProvider
projectId={appConfig.descope.projectId}
baseUrl={appConfig.descope.baseUrl}
sessionTokenViaCookie>
<Descope flowId="sign-in" onSuccess={(x) => console.log('kkkk', x)} />
</DescopeAuthProvider>
The flows look good, on the response I'm getting an object with sessionJwt
and refreshJwt
objects, but I'm getting only DS
cookie, without DSR
, which fails my backend validation
How to fix it?chilly-flag-80080
09/17/2024, 11:10 AMsquare-lawyer-71285
09/17/2024, 12:57 PMcalm-tomato-55781
09/17/2024, 4:13 PM[E064003] Invalid Refresh Token JWT was provided: Failed to validate invalid JWT refresh token - onetime [error: key provider 0 failed: [E062011] Failed getting keys from session service [error: [E053002] Failed getting secret [error: rpc error: code = Unknown desc = [E053002] Failed getting secret [error: ResourceNotFoundException: Secrets Manager can't find the specified secret.]]]]
I tried to use https://docs.descope.com/common-errors common errors to find errors by their codes - but I can't seem to find both [E062011]
and [E053002]
I have not deployed/changed my app or its environment recently. Yesterday and a couple of days ago login in the app was functioning.
I also tried experimenting - I cleaned my app site data/cache/cookies - then I re-tried and was able to login once, all the next attempts are failing again.
Could you, please, elaborate on the error above?lemon-napkin-13338
09/18/2024, 9:26 AM<https://myapp.com/?descope_magic=xyz>
and having a valid session running?cuddly-nest-37190
09/18/2024, 4:23 PMdry-alarm-28290
09/18/2024, 4:51 PMUpdate User / Add Roles
action.
i added the role to my tenant but i keep getting an error: "error": "[E064007] Invalid tenant selected for JWT: No tenant supplied"
but i can update the JWT with Custom Claims action.
what could be the issue?best-glass-93127
09/18/2024, 7:16 PM[E011004] Request contains invalid arguments: Invalid phone number [Status-Code:400]
Thanks in advance for your helpbreezy-cartoon-64439
09/19/2024, 3:03 AMlemon-napkin-13338
09/19/2024, 7:17 AMrefined-car-95006
09/19/2024, 11:15 AMchilly-flag-80080
09/19/2024, 12:21 PMjolly-librarian-61073
09/19/2024, 1:00 PMbrash-doctor-91678
09/19/2024, 1:35 PM@descope/nextjs-sdk
, I encounter an error related to next/dynamic
in DescopeFlows.js
. Has anyone experienced this before or have any insights on what might be causing it? I tried following the GitHub example app/docs provided by the support team, but still no luck. Thanks.stocky-byte-40900
09/19/2024, 4:31 PMstocky-byte-40900
09/19/2024, 4:48 PMclever-fall-95994
09/19/2024, 6:09 PM