fix: remove checking buf until I can figure out how to not use buf.lock
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { createConnectTransport } from '@connectrpc/connect-web';
|
||||
import { createValidator } from "@bufbuild/protovalidate";
|
||||
import { createValidator } from '@bufbuild/protovalidate';
|
||||
import { Code, ConnectError, createClient, type Interceptor } from '@connectrpc/connect';
|
||||
import { AuthService } from '$lib/connect/user/v1/auth_pb';
|
||||
import { UserService } from '$lib/connect/user/v1/user_pb';
|
||||
@ -15,7 +15,10 @@ const redirector: Interceptor = (next) => async (req) => {
|
||||
if (error.code === Code.Unauthenticated) {
|
||||
const redirectURL = new URL(page.url);
|
||||
redirectURL.pathname = '/auth';
|
||||
redirectURL.searchParams.append('redir', encodeURIComponent(page.url.pathname + page.url.search));
|
||||
redirectURL.searchParams.append(
|
||||
'redir',
|
||||
encodeURIComponent(page.url.pathname + page.url.search)
|
||||
);
|
||||
|
||||
await goto(redirectURL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user