I get this error: {message: 'JWSError JWSInvalidSi...
# javascript
c
I get this error: {message: 'JWSError JWSInvalidSignature'}
s
Please write your messages in one blob and also can you give more context to this.
Is this hosted or self-hosted supabase? which function are you calling when you get this error?
c
Will give more info
thank you
Here it is sir:
Copy code
{message: 'JWSError JWSInvalidSignature'}
- It is not a self-hosted supabase - I am calling the insert function
Copy code
let {data, error } = await this.$supabase.from('reg').insert([
            {
              fullname: this.fullname,
            }
          ]);
s
I'm thinking the JWT has expired or has somehow gotten corrupted. If you delete it from localStorage and then log in again
c
my local storage you mean? how do I do that please?
s
Yes your local storage. In your browser open the developer tools by right clicking on the page and going to inspect, this should open the developer tools. Go to the Application tab and you should see local storage inside that tab. Click on the arrow next to local storage and you should see the domain name which you are currently running your application on, click on it and then in the right tab you should see an option to clear all.
c
yes
just did it
thank you
I have a question: 1. Can this error happen on my clients browser when in production? 2. How can this be solved for a client side when the app is in production? 3. How can this be avoided?
s
The stale JWT issue shouldn't happen because we fixed it sometime ago, not sure why it happened in your instance. We are also working on helper libraries to resolve some of these issues too.
From the looks of your code, is it Angular you are working with?
c
NUXT
s
Ok I think the Nuxt team just released something new this week for working with Supabase.
c
Alright
How can I be a SupaBase evangelist here in Nigeria?
or community lead for Nigeria?
from Nigeria and Ghana, I can grow the supabase community up to 4000 members (if there would be a way to show metric)
s
You can apply to be part of the SupaSquad https://about.supabase.com/handbook/supasquad
I'm in Ghana a lot, so if you are ever in Ghana you can ping me on here.
c
Oh wow. Thank you so so so so so much. SupaBase has helped me publish pass faster. My development to to deploy time has reduced drastically.
s
Happy to hear that
c
Medas3