fix(auth): org-scoped team tokens and header search order
This commit is contained in:
@@ -15,8 +15,8 @@ export const useAuth = () => {
|
||||
* Get access token for a resource.
|
||||
* Tokens are synced from SSR via useState, auto-refreshes if expired.
|
||||
*/
|
||||
const getAccessToken = async (resource: string, _organizationId?: string): Promise<string> => {
|
||||
return getToken(resource as Parameters<typeof getToken>[0])
|
||||
const getAccessToken = async (resource: string, organizationId?: string): Promise<string> => {
|
||||
return getToken(resource as Parameters<typeof getToken>[0], organizationId)
|
||||
}
|
||||
|
||||
const getOrganizationToken = getAccessToken
|
||||
|
||||
Reference in New Issue
Block a user