File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class OAuthSessionStore implements NodeSavedSessionStore {
88 private readonly storage = useStorage ( OAUTH_CACHE_STORAGE_BASE )
99
1010 constructor ( session : SessionManager < UserServerSession > ) {
11- this . serverSession = this . serverSession = session
11+ this . serverSession = session
1212 }
1313
1414 private createStorageKey ( did : string , sessionId : string ) {
@@ -32,7 +32,7 @@ export class OAuthSessionStore implements NodeSavedSessionStore {
3232 async set ( key : string , val : NodeSavedSession ) {
3333 const serverSessionData = this . serverSession . data
3434 let sessionId
35- if ( ! serverSessionData . oauthSessionId ) {
35+ if ( ! serverSessionData ? .oauthSessionId ) {
3636 sessionId = crypto . randomUUID ( )
3737 await this . serverSession . update ( {
3838 oauthSessionId : sessionId ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const handleResolver = new AtprotoDohHandleResolver({
2626} )
2727
2828/**
29- * Generates the OAuth client metadata. pkAlg is used to signify that the OAuth client is confendital
29+ * Generates the OAuth client metadata. pkAlg is used to signify that the OAuth client is confidential
3030 */
3131export function getOauthClientMetadata ( pkAlg : string | undefined = undefined ) : OAuthClientMetadata {
3232 const dev = import . meta. dev
@@ -43,7 +43,7 @@ export function getOauthClientMetadata(pkAlg: string | undefined = undefined): O
4343 ? `http://localhost?redirect_uri=${ encodeURIComponent ( redirect_uri ) } &scope=${ encodeURIComponent ( scope ) } `
4444 : `${ client_uri } /oauth-client-metadata.json`
4545
46- // If anything changes here, please make zsure to also update /shared/schemas/oauth.ts to match
46+ // If anything changes here, please make sure to also update /shared/schemas/oauth.ts to match
4747 return {
4848 client_name : 'npmx.dev' ,
4949 client_id,
@@ -56,7 +56,7 @@ export function getOauthClientMetadata(pkAlg: string | undefined = undefined): O
5656 response_types : [ 'code' ] ,
5757 subject_type : 'public' ,
5858 authorization_signed_response_alg : 'RS256' ,
59- // confendital client values
59+ // confidential client values
6060 token_endpoint_auth_method : pkAlg ? 'private_key_jwt' : 'none' ,
6161 jwks_uri,
6262 token_endpoint_auth_signing_alg : pkAlg ,
You can’t perform that action at this time.
0 commit comments