https://supertokens.com/ logo
building from source
v

vigneshkumar

04/20/2023, 6:17 AM
Hi, I'm trying to build supertoken-core from source, so I'm following this [md](https://github.com/supertokens/supertokens-core/blob/master/CONTRIBUTING.md). I've the supertokens-root and I'm trying to run the scripts first before starting to modify the source. I'm getting the following error when i try to run
./startTestEnv
script. https://cdn.discordapp.com/attachments/644849840475602944/1098492564648230923/message.txt
r

rp

04/20/2023, 6:43 AM
hey @vigneshkumar which version of java are you using? We only support openjdk version 15.0.1
v

vigneshkumar

04/20/2023, 6:44 AM
I'm trying using OpenJDK 11, I will try using openjdk 15.0.1
r

rp

04/20/2023, 7:11 AM
ok
v

vigneshkumar

04/20/2023, 8:02 AM
Thanks @rp. It is running now, how come I use my local db for supertoken core? config.yaml doesn't have flags for it.
r

rp

04/20/2023, 8:03 AM
you need to see the devConfig.yaml in the supertokens-postgresql folder (if you have loaded postgrsql). By default, it works with an in memory db. For setting up with psql, see this: https://github.com/supertokens/supertokens-postgresql-plugin/blob/master/CONTRIBUTING.md
v

vigneshkumar

04/20/2023, 8:08 AM
Cool, Thanks.
Hi @rp , One quick doubt, we have a table named jwt_signing_keys table in the supertokens db right, it has key_string which has the keys seperated by '|'. I could see one is public key and what's the other and is it okay to store the public key on the server?
r

rp

04/20/2023, 9:01 AM
@porcellus can help with this
p

porcellus

04/20/2023, 9:03 AM
hi
1. the other one is the private key 2. the public key is, well, public. it is ok to store on the server, plus the JWKs endpoint returns them anyway.
v

vigneshkumar

04/20/2023, 10:02 AM
hi @porcellus, thanks. so it is okay for them to be present in the db too right?
p

porcellus

04/20/2023, 2:22 PM
yep
sorry for the late response, the notif got lost :/
v

vigneshkumar

04/21/2023, 5:05 AM
Thanks, it's fine