I'm getting `[G030001] Missing or invalid public k...
# ask-a-descoper
s
I'm getting
[G030001] Missing or invalid public key: Required public key does not exist in key set
when trying to auth my user with
_, userToken, err := descopeClient.Auth.ValidateSessionWithToken(sessionToken)
, may I have some thoughts on this?
the descopeClient was initiated with
descopeClient, err := client.NewWithConfig(&client.Config{ProjectID: DescopeAppId, ManagementKey: DescopeManagementKey})
b
What is in DescopeAppId? Seems like your project Id is wrong. Can you confirm why the value?
s
DescopeAppId is my project ID
I'm getting it from Descope Console
and DescopeManagementKey is a AccessKey I created from Descope Console
b
Management Key does not take Access Key. It only takes Management Key created under Company -> management keys.
s
oh... that's the error then 😅
b
Can you please try and let us know?
s
yep, that was it 🙂 thanks Gilad, really appreciate it
👍 1