I want to use process.env for the secrets. I am ch...
# support-questions
d
I want to use process.env for the secrets. I am checking for non nullish, but the system crashes
r
this error doesn't seem to be coming from supertokens.
d
ok
People are able to use process.env inside the token recipe correctl
r
Yes.
d
Can I make a suggestion for the code? That the non nullish check will be built in?
r
Well, our code accepts only type string.
So no point in having a non nullish check
(from our point of view)
d
This is what happens when I dont have the code
r
Ah right I see. Ok makes sense
d
I can easily set the ! to it
r
You could open an issue about this and we can work on this as and when we come around to it 🙂
d
but yea..
👍
r
for now you can do
process.env.GOOGLE_CLIENT_ID as any
d
just to fully understand, what is the main difference from that compared to
process.env.GOOGLE_CLIENT_ID!
r
nothing.
process.env.GOOGLE_CLIENT_ID!
is better
d
Thanks
2 Views