9 lines
201 B
JavaScript
9 lines
201 B
JavaScript
|
|
|
|
function testAuth(ctx) {
|
|
var subject = auth.getClaim(ctx, auth.CLAIM_SUBJECT);
|
|
|
|
if (subject !== undefined) {
|
|
throw new Error("subject: expected undefined, got '"+subject+"'");
|
|
}
|
|
} |