Skip to content

Conversation

@thorwebdev
Copy link
Contributor

What kind of change does this PR introduce?

bump

  • "@supabase/auth-js": "2.64.0",
  • "@supabase/functions-js": "2.3.1",

@thorwebdev thorwebdev requested a review from kangmingtay April 25, 2024 06:59
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8828313695

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 65.714%

Totals Coverage Status
Change from base Build 8746073275: 0.0%
Covered Lines: 90
Relevant Lines: 117

💛 - Coveralls

@thorwebdev thorwebdev merged commit 1687dea into master Apr 25, 2024
@thorwebdev thorwebdev deleted the thor/bump-auth-n-functions-js branch April 25, 2024 07:01
mandarini pushed a commit that referenced this pull request Oct 2, 2025
…to refresh (#1027)

When `autoRefreshToken` is off (or when a tab is in the background) but
`getSession()` is called -- such as in an active Realtime channel,
`getSession()` might return a JWT which will expire while the message is
travelling over the internet. There is one confirmed case of this
happening.

This PR adjusts this using the established `EXPIRY_MARGIN_MS` constant
(which only applies on initial initialization of the client). The
constant's value is brought in line with the `autoRefreshToken` ticks
which run every 30 seconds and refreshing is attempted 3 ticks prior to
the session expiring.

This means that JWTs with an expiry value **less than 90s** will always
refresh the session; which is acceptable.
mandarini pushed a commit that referenced this pull request Oct 2, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.68.0](supabase/auth-js@v2.67.3...v2.68.0)
(2025-01-21)


### Features

* consider session expired with margin on getSession() without auto
refresh ([#1027](supabase/auth-js#1027))
([a51dbb0](supabase/auth-js@a51dbb0))


### Bug Fixes

* remove `internal-types.ts`
([#1014](supabase/auth-js#1014))
([902ec1d](supabase/auth-js@902ec1d))
* update docs to add scrypt
([#1012](supabase/auth-js#1012))
([0dc969a](supabase/auth-js@0dc969a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants